Update node_modules

This commit is contained in:
crazy-max
2020-01-24 09:14:21 +00:00
parent 01f7c3ce16
commit a09bb75342
31 changed files with 1513 additions and 667 deletions

View File

@@ -29,6 +29,11 @@ export declare enum HttpCodes {
ServiceUnavailable = 503,
GatewayTimeout = 504
}
/**
* Returns the proxy URL, depending upon the supplied url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
export declare function getProxyUrl(serverUrl: string): string;
export declare class HttpClientResponse implements ifm.IHttpClientResponse {
constructor(message: http.IncomingMessage);
message: http.IncomingMessage;
@@ -36,7 +41,7 @@ export declare class HttpClientResponse implements ifm.IHttpClientResponse {
}
export declare function isHttps(requestUrl: string): boolean;
export declare class HttpClient {
userAgent: string | null | undefined;
userAgent: string | undefined;
handlers: ifm.IRequestHandler[];
requestOptions: ifm.IRequestOptions;
private _ignoreSslError;
@@ -82,6 +87,12 @@ export declare class HttpClient {
* @param onResult
*/
requestRawWithCallback(info: ifm.IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: ifm.IHttpClientResponse) => void): void;
/**
* Gets an http agent. This function is useful when you need an http agent that handles
* routing through a proxy server - depending upon the url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
getAgent(serverUrl: string): http.Agent;
private _prepareRequest;
private _mergeHeaders;
private _getAgent;