Closed pbusko closed 4 months ago
Instead of initialising the http.Client during every call to the downloader.Download, use the http.DefaultClient. Also custom client can be provided with the blob.WithClient option (for example with a custom RoundTripper for injecting credentials)
http.Client
downloader.Download
http.DefaultClient
blob.WithClient
RoundTripper
Resolves #___
Summary
Instead of initialising the
http.Client
during every call to thedownloader.Download
, use thehttp.DefaultClient
. Also custom client can be provided with theblob.WithClient
option (for example with a customRoundTripper
for injecting credentials)Output
Before
After
Documentation
Related
Resolves #___