Skip to content

Allow users to configure custom http.Client or http.RoundTripper in DefaultFetcher#682

Merged
kommendorkapten merged 7 commits intotheupdateframework:masterfrom
malancas:fetcher-default-timeout
Apr 16, 2025
Merged

Allow users to configure custom http.Client or http.RoundTripper in DefaultFetcher#682
kommendorkapten merged 7 commits intotheupdateframework:masterfrom
malancas:fetcher-default-timeout

Conversation

@malancas
Copy link
Copy Markdown
Contributor

@malancas malancas commented Apr 9, 2025

Related to #660

This updates the DefaultFetcher so users can optionally provide a custom http.Client or http.RoundTripper. Note that this removes the timeout parameter from the DefaultFetcher#DownloadFile method.

Once this is merged, I will follow up with another pull request allowing users to configure HTTP request retries in DownloadFile.

@malancas malancas changed the title Fetcher default timeout Allow users to configure custom HTTP client Apr 9, 2025
@malancas malancas closed this Apr 9, 2025
@malancas malancas reopened this Apr 10, 2025
@malancas malancas changed the title Allow users to configure custom HTTP client Allow users to configure custom http.Client or http.RoundTripper in DefaultFetcher Apr 10, 2025
@malancas malancas marked this pull request as ready for review April 15, 2025 15:12
@malancas malancas requested a review from a team as a code owner April 15, 2025 15:12
Copy link
Copy Markdown
Member

@kommendorkapten kommendorkapten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much 🚀

@kommendorkapten kommendorkapten merged commit 0239656 into theupdateframework:master Apr 16, 2025
23 checks passed
@rdimitrov
Copy link
Copy Markdown
Contributor

Thank you for contributing, @malancas 🚀

@kommendorkapten kommendorkapten mentioned this pull request May 6, 2025
@malancas malancas deleted the fetcher-default-timeout branch May 28, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants