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
proposal: net/http: add HTTP transport interceptors #66844
Comments
It doesn't seem like there's anything here that needs to be in the I'd suggest developing this as a regular package outside the standard library. |
I do not think so:
Reply:
|
Dup with #38479 |
I agree |
The bar for adding new features to the standard library is high. In general, anything new in std must have a very compelling reason why it should be there and not anywhere else. "It's small and someone might use it" isn't enough. See also: https://go.dev/doc/faq#x_in_std |
@neild ne |
Proposal Details
Proposed new Transport Interceptor Api for net/http package.
It helps users easily install hooks/filters/custom_actions into their Http Client.
A few use cases that I'm using and that I think are useful to a lot of people:
I have written a few typical Interceptors here, you can see it is quite clear so users can easily use and create their Interceptors.
The text was updated successfully, but these errors were encountered: