Skip to content

Commit

Permalink
net/http/httptest: add comment to Server.Client() about Server.URL
Browse files Browse the repository at this point in the history
Updates #30774.

Change-Id: I9564f955b15c701bee27aa9fbf3972de8fdb55e4
GitHub-Last-Rev: 50bd6bd
GitHub-Pull-Request: #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>
  • Loading branch information
agcom authored and gopherbot committed May 10, 2024
1 parent 4721f95 commit 69c74c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/http/httptest/server.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 69c74c9

Please sign in to comment.