@smithy/node-http-handler
Advanced tools
Comparing version 2.0.5 to 2.1.0
@@ -133,3 +133,16 @@ "use strict"; | ||
} | ||
updateHttpClientConfig(key, value) { | ||
this.config = undefined; | ||
this.configProvider = this.configProvider.then((config) => { | ||
return { | ||
...config, | ||
[key]: value, | ||
}; | ||
}); | ||
} | ||
httpHandlerConfigs() { | ||
var _a; | ||
return (_a = this.config) !== null && _a !== void 0 ? _a : {}; | ||
} | ||
} | ||
exports.NodeHttpHandler = NodeHttpHandler; |
@@ -140,2 +140,15 @@ "use strict"; | ||
} | ||
updateHttpClientConfig(key, value) { | ||
this.config = undefined; | ||
this.configProvider = this.configProvider.then((config) => { | ||
return { | ||
...config, | ||
[key]: value, | ||
}; | ||
}); | ||
} | ||
httpHandlerConfigs() { | ||
var _a; | ||
return (_a = this.config) !== null && _a !== void 0 ? _a : {}; | ||
} | ||
destroySession(session) { | ||
@@ -142,0 +155,0 @@ if (!session.destroyed) { |
@@ -128,2 +128,14 @@ import { HttpResponse } from "@smithy/protocol-http"; | ||
} | ||
updateHttpClientConfig(key, value) { | ||
this.config = undefined; | ||
this.configProvider = this.configProvider.then((config) => { | ||
return { | ||
...config, | ||
[key]: value, | ||
}; | ||
}); | ||
} | ||
httpHandlerConfigs() { | ||
return this.config ?? {}; | ||
} | ||
} |
@@ -136,2 +136,14 @@ import { HttpResponse } from "@smithy/protocol-http"; | ||
} | ||
updateHttpClientConfig(key, value) { | ||
this.config = undefined; | ||
this.configProvider = this.configProvider.then((config) => { | ||
return { | ||
...config, | ||
[key]: value, | ||
}; | ||
}); | ||
} | ||
httpHandlerConfigs() { | ||
return this.config ?? {}; | ||
} | ||
destroySession(session) { | ||
@@ -138,0 +150,0 @@ if (!session.destroyed) { |
@@ -34,5 +34,5 @@ /// <reference types="node" /> | ||
export declare const DEFAULT_REQUEST_TIMEOUT = 0; | ||
export declare class NodeHttpHandler implements HttpHandler { | ||
export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> { | ||
private config?; | ||
private readonly configProvider; | ||
private configProvider; | ||
readonly metadata: { | ||
@@ -47,2 +47,4 @@ handlerProtocol: string; | ||
}>; | ||
updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void; | ||
httpHandlerConfigs(): NodeHttpHandlerOptions; | ||
} |
@@ -33,5 +33,5 @@ import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; | ||
} | ||
export declare class NodeHttp2Handler implements HttpHandler { | ||
export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOptions> { | ||
private config?; | ||
private readonly configProvider; | ||
private configProvider; | ||
readonly metadata: { | ||
@@ -46,2 +46,4 @@ handlerProtocol: string; | ||
}>; | ||
updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void; | ||
httpHandlerConfigs(): NodeHttp2HandlerOptions; | ||
/** | ||
@@ -48,0 +50,0 @@ * Destroys a session. |
@@ -33,5 +33,5 @@ /// <reference types="node" /> | ||
export declare const DEFAULT_REQUEST_TIMEOUT = 0; | ||
export declare class NodeHttpHandler implements HttpHandler { | ||
export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> { | ||
private config?; | ||
private readonly configProvider; | ||
private configProvider; | ||
readonly metadata: { | ||
@@ -46,2 +46,4 @@ handlerProtocol: string; | ||
}>; | ||
updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void; | ||
httpHandlerConfigs(): NodeHttpHandlerOptions; | ||
} |
@@ -33,5 +33,5 @@ import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; | ||
} | ||
export declare class NodeHttp2Handler implements HttpHandler { | ||
export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOptions> { | ||
private config?; | ||
private readonly configProvider; | ||
private configProvider; | ||
readonly metadata: { | ||
@@ -46,2 +46,4 @@ handlerProtocol: string; | ||
}>; | ||
updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void; | ||
httpHandlerConfigs(): NodeHttp2HandlerOptions; | ||
/** | ||
@@ -48,0 +50,0 @@ * Destroys a session. |
{ | ||
"name": "@smithy/node-http-handler", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"description": "Provides a way to make requests", | ||
@@ -28,6 +28,6 @@ "scripts": { | ||
"dependencies": { | ||
"@smithy/abort-controller": "^2.0.5", | ||
"@smithy/protocol-http": "^2.0.5", | ||
"@smithy/querystring-builder": "^2.0.5", | ||
"@smithy/types": "^2.2.2", | ||
"@smithy/abort-controller": "^2.0.6", | ||
"@smithy/protocol-http": "^3.0.0", | ||
"@smithy/querystring-builder": "^2.0.6", | ||
"@smithy/types": "^2.3.0", | ||
"tslib": "^2.5.0" | ||
@@ -34,0 +34,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82989
1729
+ Added@smithy/protocol-http@3.3.0(transitive)
- Removed@smithy/protocol-http@2.0.5(transitive)
Updated@smithy/protocol-http@^3.0.0
Updated@smithy/types@^2.3.0