aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
authorAlireza Ghasemi <agcombest@gmail.com>2024-05-09 06:07:55 +0000
committerGopher Robot <gobot@golang.org>2024-05-10 17:26:10 +0000
commit69c74c9ea932f284364b0cac72a454a4e56d4ab2 (patch)
tree5ab5502aa93ca197718a986a04ab0700f6d1795f /src/net/http
parent4721f95058878042576ef09562a84e6c93e5c399 (diff)
downloadgo-69c74c9ea932f284364b0cac72a454a4e56d4ab2.tar.xz
net/http/httptest: add comment to Server.Client() about Server.URL
Updates #30774. Change-Id: I9564f955b15c701bee27aa9fbf3972de8fdb55e4 GitHub-Last-Rev: 50bd6bd54ec4195ed9e09a4a2d69e386bf55b21f GitHub-Pull-Request: golang/go#67037 Reviewed-on: https://go-review.googlesource.com/c/go/+/581777 Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/httptest/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/http/httptest/server.go b/src/net/http/httptest/server.go
index 5095b438ec..fa54923179 100644
--- a/src/net/http/httptest/server.go
+++ b/src/net/http/httptest/server.go
@@ -299,6 +299,7 @@ func (s *Server) Certificate() *x509.Certificate {
// Client returns an HTTP client configured for making requests to the server.
// It is configured to trust the server's TLS test certificate and will
// close its idle connections on [Server.Close].
+// Use Server.URL as the base URL to send requests to the server.
func (s *Server) Client() *http.Client {
return s.client
}