初始化环境文件
This commit is contained in:
21
node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
generated
vendored
Normal file
21
node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
export const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
||||
return {
|
||||
setHttpHandler(handler) {
|
||||
runtimeConfig.httpHandler = handler;
|
||||
},
|
||||
httpHandler() {
|
||||
return runtimeConfig.httpHandler;
|
||||
},
|
||||
updateHttpClientConfig(key, value) {
|
||||
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
|
||||
},
|
||||
httpHandlerConfigs() {
|
||||
return runtimeConfig.httpHandler.httpHandlerConfigs();
|
||||
},
|
||||
};
|
||||
};
|
||||
export const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
||||
return {
|
||||
httpHandler: httpHandlerExtensionConfiguration.httpHandler(),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user