Versions in this module Expand all Collapse all v1 v1.4.0 Aug 19, 2016 Changes in this version + var UserAgent string + func CheckRedirect(req *http.Request, via []*http.Request) error + func DecodeResponse(res *http.Response, obj interface{}) error + func DoHttpRequest(cfg *config.Configuration, req *http.Request, useCreds bool) (*http.Response, error) + func DoHttpRequestWithRedirects(cfg *config.Configuration, req *http.Request, via []*http.Request, ...) (*http.Response, error) + func GetAuthType(res *http.Response) string + func GetDefaultError(code int) string + func LogHttpStats(cfg *config.Configuration) + func LogTransfer(cfg *config.Configuration, key string, res *http.Response) + func NewHttpRequest(method, rawurl string, header map[string]string) (*http.Request, error) + func ProxyFromGitConfigOrEnvironment(c *config.Configuration) func(req *http.Request) (*url.URL, error) + func SetAuthType(cfg *config.Configuration, req *http.Request, res *http.Response) + func SetErrorResponseContext(cfg *config.Configuration, err error, res *http.Response) + func TraceHttpReq(req *http.Request) string + type ClientError struct + DocumentationUrl string + Message string + RequestId string + func (e *ClientError) Error() string + type CountingReadCloser struct + Count int + func (c *CountingReadCloser) Read(b []byte) (int, error) + type HttpClient struct + Config *config.Configuration + func NewHttpClient(c *config.Configuration, host string) *HttpClient + func (c *HttpClient) Do(req *http.Request) (*http.Response, error)