Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( DefaultHttpClient *http.Client ProxyHttpClient *http.Client )
Functions ¶
func GetHttpClient ¶
func InitHttpClient ¶
func InitHttpClient()
func Local ¶ added in v1.833.53
Local returns the client to use for a base URL, or nil to take the verifying default. A non-nil result accepts any certificate and is returned ONLY for this machine, where a model server's certificate is self-signed because nobody issues one for 127.0.0.1. Anything that does not clearly name this machine — a look-alike host, an unparseable URL — is remote and verifies.
Types ¶
This section is empty.