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 support for proxy basic authentication #55290
Comments
The implementation for this proposal can be found here #55131. |
How common does the need for this occur that it needs specialized API in net/http? cc @neild |
As @seankhliao said, these helpers seem like they can be implemented as a separate package very easily. We only added BasicAuth etc because they came up so often. This doesn't seem like it comes up often enough. |
This proposal has been added to the active column of the proposals project |
Based on the discussion above, this proposal seems like a likely decline. |
No change in consensus, so declined. |
The current implementation of the http.Reuest allows parsing and setting the basic authentication username and password using the BasicAuth and SetBasicAuth methods. When authenticating to a http proxy server the http client and server are using a different header for the basic authentication - "Proxy-Authorization" described in RFC 2068, Section 14. Supporting parsing and setting proxy basic authentication is currently not covered in the net/http package and would be very helpful when programming http proxy client/server.
To help tackle this, I propose the following API:
The text was updated successfully, but these errors were encountered: