-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: DefaultTransport documentation should describe HTTPS_PROXY #32649
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
Comments
Please let me know if I am understanding this issue. To summarize: |
/cc @rsc (since Brad is on leave) |
Thanks @katiehockman and yes indeed. |
The changes improve the documentation for DefaultTransport, making the style with how the HTTP proxy environment variables are being referred to, consistent with the rest of the project's documentation. Also mention HTTPS_PROXY environment variables, as suggested in golang#32649.
Change https://go.dev/cl/430135 mentions this issue: |
The changes improve the documentation for DefaultTransport, making the style with how the HTTP proxy environment variables are being referred to, consistent with the rest of the project's documentation. Also mention HTTPS_PROXY environment variables, as suggested in #32649. Change-Id: I4e6b49881d7b30b5a0d4699531fa7c2929fc49f7 GitHub-Last-Rev: 2fc7519 GitHub-Pull-Request: #54996 Reviewed-on: https://go-review.googlesource.com/c/go/+/430135 Reviewed-by: Damien Neil <[email protected]> Auto-Submit: Jenny Rakoczy <[email protected]> Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Jenny Rakoczy <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
@HouzuoGuo with the changes from https://go.dev/cl/430135 is there anything to improve for the issue? See the tip's documentation for the reference https://pkg.go.dev/net/http@master#DefaultTransport |
That's amazing - thank you! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Affirmative.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In https://golang.org/pkg/net/http/#RoundTripper, the online manual explains the following for RoundTripper:
Although DefaultTransport uses proxy settings from system environment via ProxyFromEnvironment, which not even recognises HTTP proxy, but HTTPS proxy also:
DefaultTransport
indeed behaves correctly and recognises both HTTPS and HTTP proxy settings from system environment. Therefore, please elaborate about the support of HTTPS proxy in the documentation forDefaultTransport
.Thanks!
The text was updated successfully, but these errors were encountered: