2 ms·
Any mention of the Go http package and timeouts ought to also mention "never use http.DefaultClient": package http var DefaultClient = &Client{} It is a c
by karmakaze 6y ago
Any mention of the Go http package and timeouts ought to also mention "never use http.DefaultClient":
package http
var DefaultClient = &Client{}
It is a convenient global variable that uses whatever last settings were set upon it from any bit of code executed in any dependency.