UNPKG

555 BJavaScriptView Raw
1/**
2 * @private
3 */
4export function getUploadHttpClient(http, options) {
5 var _ref;
6 const {
7 hostUpload,
8 defaultHostnameUpload,
9 timeout
10 } = http.httpClientParams;
11 const uploadHttp = http.cloneWithNewParams({
12 host: hostUpload || defaultHostnameUpload,
13 // Using client presets, options or 5 minute default timeout
14 timeout: (_ref = timeout !== null && timeout !== void 0 ? timeout : options === null || options === void 0 ? void 0 : options.uploadTimeout) !== null && _ref !== void 0 ? _ref : 300000
15 });
16 return uploadHttp;
17}
\No newline at end of file