Initial
This commit is contained in:
22
resources/app/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
generated
vendored
Normal file
22
resources/app/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
||||
let httpHandler = runtimeConfig.httpHandler;
|
||||
return {
|
||||
setHttpHandler(handler) {
|
||||
httpHandler = handler;
|
||||
},
|
||||
httpHandler() {
|
||||
return httpHandler;
|
||||
},
|
||||
updateHttpClientConfig(key, value) {
|
||||
httpHandler.updateHttpClientConfig(key, value);
|
||||
},
|
||||
httpHandlerConfigs() {
|
||||
return httpHandler.httpHandlerConfigs();
|
||||
},
|
||||
};
|
||||
};
|
||||
export const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
||||
return {
|
||||
httpHandler: httpHandlerExtensionConfiguration.httpHandler(),
|
||||
};
|
||||
};
|
||||
1
resources/app/node_modules/@smithy/protocol-http/dist-es/extensions/index.js
generated
vendored
Normal file
1
resources/app/node_modules/@smithy/protocol-http/dist-es/extensions/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./httpExtensionConfiguration";
|
||||
Reference in New Issue
Block a user