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 8c0da42 commit 641b41aCopy full SHA for 641b41a
src/net/http/httptest/server.go
@@ -299,6 +299,7 @@ func (s *Server) Certificate() *x509.Certificate {
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.
303
func (s *Server) Client() *http.Client {
304
return s.client
305
}
0 commit comments