Updated names of exported interfaces `IHTTPPipelineLogger` & `IHTTPClient` to `IHttpPipelineLogger` & `IHttpClient`.
This commit is contained in:
Родитель
a7c26a8ffb
Коммит
040d0d1a48
|
@ -1,5 +1,7 @@
|
|||
# Breaking Changes
|
||||
|
||||
* Updated names of exported interfaces `IHTTPPipelineLogger` & `IHTTPClient` to `IHttpPipelineLogger` & `IHttpClient`.
|
||||
|
||||
2018.09 10.1.0-preview
|
||||
|
||||
* `Aborter.None` is renamed to `Aborter.none` for JavaScript naming conventions.
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
- Fixed a bug during generateAccountSASQueryParameters() that generated signature is not valid.
|
||||
- Fixed a bug during generateBlobSASQueryParameters() that cache-control, content-type, content-disposition, content-encoding and content-language are not supported.
|
||||
- Fixed a bug in SAS generation that start and expiry time format is not correct.
|
||||
* [Breaking] Updated names of exported interfaces `IHTTPPipelineLogger` & `IHTTPClient` to `IHttpPipelineLogger` & `IHttpClient`.
|
||||
|
||||
2018.09 10.1.0-preview
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import {
|
||||
BaseRequestPolicy,
|
||||
HttpClient as IHTTPClient,
|
||||
HttpClient as IHttpClient,
|
||||
HttpHeaders,
|
||||
HttpOperationResponse,
|
||||
HttpPipelineLogger as IHTTPPipelineLogger,
|
||||
HttpPipelineLogger as IHttpPipelineLogger,
|
||||
HttpPipelineLogLevel,
|
||||
RequestPolicy,
|
||||
RequestPolicyFactory,
|
||||
|
@ -15,8 +15,8 @@ import {
|
|||
// Export following interfaces and types for customers who want to implement their
|
||||
// own RequestPolicy or HTTPClient
|
||||
export {
|
||||
IHTTPClient,
|
||||
IHTTPPipelineLogger,
|
||||
IHttpClient,
|
||||
IHttpPipelineLogger,
|
||||
HttpHeaders,
|
||||
HttpPipelineLogLevel,
|
||||
HttpOperationResponse,
|
||||
|
@ -34,8 +34,8 @@ export {
|
|||
* @interface IPipelineOptions
|
||||
*/
|
||||
export interface IPipelineOptions {
|
||||
logger?: IHTTPPipelineLogger;
|
||||
HTTPClient?: IHTTPClient;
|
||||
logger?: IHttpPipelineLogger;
|
||||
HTTPClient?: IHttpClient;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -53,7 +53,7 @@ export class Pipeline {
|
|||
public readonly options: IPipelineOptions;
|
||||
|
||||
/**
|
||||
* Creates an instance of Pipeline. Customize HTTPClient by implementing IHTTPClient interface.
|
||||
* Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.
|
||||
*
|
||||
* @param {RequestPolicyFactory[]} factories
|
||||
* @param {IPipelineOptions} [options={}]
|
||||
|
|
|
@ -4,7 +4,7 @@ import { BrowserPolicyFactory } from "./BrowserPolicyFactory";
|
|||
import { Credential } from "./credentials/Credential";
|
||||
import { StorageClientContext } from "./generated/storageClientContext";
|
||||
import { LoggingPolicyFactory } from "./LoggingPolicyFactory";
|
||||
import { IHTTPClient, IHTTPPipelineLogger, Pipeline } from "./Pipeline";
|
||||
import { IHttpClient, IHttpPipelineLogger, Pipeline } from "./Pipeline";
|
||||
import { IRetryOptions, RetryPolicyFactory } from "./RetryPolicyFactory";
|
||||
import {
|
||||
ITelemetryOptions,
|
||||
|
@ -31,8 +31,8 @@ export interface INewPipelineOptions {
|
|||
telemetry?: ITelemetryOptions;
|
||||
retryOptions?: IRetryOptions;
|
||||
|
||||
logger?: IHTTPPipelineLogger;
|
||||
httpClient?: IHTTPClient;
|
||||
logger?: IHttpPipelineLogger;
|
||||
httpClient?: IHttpClient;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { HttpPipelineLogLevel, IHTTPPipelineLogger } from "../../lib/Pipeline";
|
||||
import { HttpPipelineLogLevel, IHttpPipelineLogger } from "../../lib/Pipeline";
|
||||
import { padStart } from "../../lib/utils/utils.common";
|
||||
|
||||
export function isBrowser(): boolean {
|
||||
|
@ -29,7 +29,7 @@ export function base64decode(encodedString: string): string {
|
|||
: Buffer.from(encodedString, "base64").toString();
|
||||
}
|
||||
|
||||
export class ConsoleHttpPipelineLogger implements IHTTPPipelineLogger {
|
||||
export class ConsoleHttpPipelineLogger implements IHttpPipelineLogger {
|
||||
constructor(public minimumLogLevel: HttpPipelineLogLevel) {}
|
||||
public log(logLevel: HttpPipelineLogLevel, message: string): void {
|
||||
const logMessage = `${new Date().toISOString()} ${
|
||||
|
|
Загрузка…
Ссылка в новой задаче