UNPKG

contentful-management

Version:
16 lines (14 loc) 493 B
/** * @internal */ function getUploadHttpClient(http, options) { const { hostUpload, defaultHostnameUpload, timeout } = http.httpClientParams; const uploadHttp = http.cloneWithNewParams({ host: hostUpload || defaultHostnameUpload, // Using client presets, options or 5 minute default timeout timeout: timeout ?? options?.uploadTimeout ?? 300000, }); return uploadHttp; } export { getUploadHttpClient }; //# sourceMappingURL=upload-http-client.js.map