We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 641b41a commit 09f2aefCopy full SHA for 09f2aef
src/net/http/httptest/server.go
@@ -297,9 +297,8 @@ func (s *Server) Certificate() *x509.Certificate {
297
}
298
299
// Client returns an HTTP client configured for making requests to the server.
300
-// It is configured to trust the server's TLS test certificate and will
301
-// close its idle connections on [Server.Close].
302
-// It only redirects requests to the base URL (Server.URL) to the test server.
+// It is a standard http.Client that is configured to trust the server's TLS test certificate and will
+// close its idle connections on [Server.Close]. To hit the test server, use the base URL (Server.URL) in requests.
303
func (s *Server) Client() *http.Client {
304
return s.client
305
0 commit comments