func newRawClient(
	noRedirect, noCertCheck, disableKeepAlives bool,
	responseHeaderTimeout time.Duration) *http.Client {

	tr := http.Transport{
		DisableKeepAlives:     disableKeepAlives,
		ResponseHeaderTimeout: responseHeaderTimeout,
		Proxy: http.ProxyFromEnvironment,
	}
	tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: noCertCheck}
	c := http.Client{Transport: &tr}
	if noRedirect {
		c.CheckRedirect = func(*http.Request, []*http.Request) error {
			return fmt.Errorf(noRedirectError)
		}
	}
	return &c
}
func newRawClient(
	noRedirect, noCertCheck, disableKeepAlives bool,
	responseHeaderTimeout time.Duration) *http.Client {

	tr := http.Transport{
		DisableKeepAlives:     disableKeepAlives,
		ResponseHeaderTimeout: responseHeaderTimeout,
		Proxy: http.ProxyFromEnvironment,
	}
	tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: noCertCheck}
	c := http.Client{Transport: &tr}
	if noRedirect {
		c.CheckRedirect = func(*http.Request, []*http.Request) error {
			return fmt.Errorf(noRedirectError)
		}
	}
	return &c
}
// newRawClient creates an http package Client taking into account both the parameters and package
// variables.