-
Notifications
You must be signed in to change notification settings - Fork 503
Transport wrappers #2103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transport wrappers #2103
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,6 +264,9 @@ type Config struct { | |
// HTTPClient is an HTTP client that trusts the system cert pool and the CA | ||
// roots. | ||
HTTPClient *http.Client | ||
// WrapTransport references the function that should wrap any [http.Transport] initialized | ||
// down the Config's chain. | ||
WrapTransport func(*http.Transport) http.RoundTripper | ||
|
||
} | ||
|
||
type provisioner struct { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above the above.