1
0
mirror of https://github.com/golang/go synced 2024-11-15 00:00:34 -07:00
This commit is contained in:
Alireza Ghasemi 2024-05-09 09:35:12 +03:30 committed by GitHub
parent 09f2aefd12
commit 50bd6bd54e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,8 +297,9 @@ func (s *Server) Certificate() *x509.Certificate {
}
// Client returns an HTTP client configured for making requests to the 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.
// 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
}