aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/request.go
diff options
context:
space:
mode:
authorKeiichi Hirobe <chalenge.akane@gmail.com>2023-10-22 17:30:37 +0900
committerGopher Robot <gobot@golang.org>2023-10-23 20:47:30 +0000
commitf9c54f9cd441110af2146d9c21eeaee9df178204 (patch)
treec0be74aa1316a628705725e0c710b1c7900a7aeb /src/net/http/request.go
parente46e8610aba89ed91896ab6ccc5349636e0b4df2 (diff)
downloadgo-f9c54f9cd441110af2146d9c21eeaee9df178204.tar.xz
net/http: remove outdated comment about a support of CONNECT method
The net/http.Transport already supports CONNECT after https://go-review.googlesource.com/c/go/+/123156 was merged, which deleted comments in transport.go. Change-Id: I784fdb9b044bc8a4a29bf252328c80a11aaf6901 Reviewed-on: https://go-review.googlesource.com/c/go/+/536057 Auto-Submit: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/net/http/request.go')
-rw-r--r--src/net/http/request.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/net/http/request.go b/src/net/http/request.go
index b66e6853f6..ed2cdac136 100644
--- a/src/net/http/request.go
+++ b/src/net/http/request.go
@@ -111,10 +111,6 @@ var reqWriteExcludeHeader = map[string]bool{
type Request struct {
// Method specifies the HTTP method (GET, POST, PUT, etc.).
// For client requests, an empty string means GET.
- //
- // Go's HTTP client does not support sending a request with
- // the CONNECT method. See the documentation on Transport for
- // details.
Method string
// URL specifies either the URI being requested (for server