httpclient/http.go
func newVariableDumpClient(c *http.Client) HTTPClient {
	dc := &dumpClient{Client: c}
	dc.isInsecure = func() bool {
		return Insecure
	}
	dc.dumpFormat = func() Format {
		return DumpFormat
	}
	dc.hiddenHeaders = func() map[string]bool {
		return HiddenHeaders
	}
	return dc
}
func newVariableDumpClient(c *http.Client) HTTPClient {
	dc := &dumpClient{Client: c}
	dc.isInsecure = func() bool {
		return Insecure
	}
	dc.dumpFormat = func() Format {
		return DumpFormat
	}
	dc.hiddenHeaders = func() map[string]bool {
		return HiddenHeaders
	}
	return dc
}
// newVariableDumpClient defines accessors for package variables, which are not
// go-routine safe so can theoretically change value while the client is in use.
// this emulates the legacy behavior.