Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + const DefaultMaxIdleConnsPerHost + const StatusAccepted + const StatusAlreadyReported + const StatusBadGateway + const StatusBadRequest + const StatusConflict + const StatusContinue + const StatusCreated + const StatusExpectationFailed + const StatusFailedDependency + const StatusForbidden + const StatusFound + const StatusGatewayTimeout + const StatusGone + const StatusHTTPVersionNotSupported + const StatusIMUsed + const StatusInsufficientStorage + const StatusInternalServerError + const StatusLengthRequired + const StatusLocked + const StatusLoopDetected + const StatusMethodNotAllowed + const StatusMisdirectedRequest + const StatusMovedPermanently + const StatusMultiStatus + const StatusMultipleChoices + const StatusNetworkAuthenticationRequired + const StatusNoContent + const StatusNonAuthoritativeInfo + const StatusNotAcceptable + const StatusNotExtended + const StatusNotFound + const StatusNotImplemented + const StatusNotModified + const StatusOK + const StatusPartialContent + const StatusPaymentRequired + const StatusPermanentRedirect + const StatusPreconditionFailed + const StatusPreconditionRequired + const StatusProcessing + const StatusProxyAuthRequired + const StatusRequestEntityTooLarge + const StatusRequestHeaderFieldsTooLarge + const StatusRequestTimeout + const StatusRequestURITooLong + const StatusRequestedRangeNotSatisfiable + const StatusResetContent + const StatusSeeOther + const StatusServiceUnavailable + const StatusSwitchingProtocols + const StatusTeapot + const StatusTemporaryRedirect + const StatusTooEarly + const StatusTooManyRequests + const StatusUnauthorized + const StatusUnavailableForLegalReasons + const StatusUnprocessableEntity + const StatusUnsupportedMediaType + const StatusUpgradeRequired + const StatusUseProxy + const StatusVariantAlsoNegotiates + var DefaultTransport http.RoundTripper = http.DefaultTransport + var ErrBodyReadAfterClose = errors.New("http: invalid Read on closed Body") + var ErrLineTooLong = errors.New("header line too long") + var ErrNoLocation = errors.New("http: no Location header in response") + var ErrSkipAltProtocol = errors.New("net/http: skip alternate protocol") + var NoBody = noBody + func NewChunkedReader(r io.Reader) io.Reader + func NewChunkedWriter(w io.Writer) io.WriteCloser + func ProxyFromEnvironment(req *http.Request) (*url.URL, error) + func ProxyURL(fixedURL *url.URL) func(*http.Request) (*url.URL, error) + func WithClientTrace(ctx context.Context, trace *ClientTrace) context.Context + type ClientTrace struct + ConnectDone func(network, addr string, err error) + ConnectStart func(network, addr string) + DNSDone func(DNSDoneInfo) + DNSStart func(DNSStartInfo) + GetConn func(hostPort string) + Got100Continue func() + Got1xxResponse func(code int, header textproto.MIMEHeader) error + GotConn func(GotConnInfo) + GotFirstResponseByte func() + PutIdleConn func(err error) + TLSHandshakeDone func(tls.ConnectionState, error) + TLSHandshakeStart func() + Wait100Continue func() + WroteHeaderField func(key string, value []string) + WroteHeaders func() + WroteRequest func(WroteRequestInfo) + func ContextClientTrace(ctx context.Context) *ClientTrace + type DNSDoneInfo struct + Addrs []net.IPAddr + Coalesced bool + Err error + type DNSStartInfo struct + Host string + type FlushAfterChunkWriter struct + type GotConnInfo struct + Conn net.Conn + IdleTime time.Duration + Reused bool + WasIdle bool + type LookupIPAltResolverKey struct + type Trace struct + ConnectDone func(network, addr string, err error) + ConnectStart func(network, addr string) + DNSDone func(netIPs []interface{}, coalesced bool, err error) + DNSStart func(name string) + type TraceKey struct + type Transport struct + Dial func(network, addr string) (net.Conn, error) + DialContext func(ctx context.Context, network, addr string) (net.Conn, error) + DialTLS func(network, addr string) (net.Conn, error) + DisableCompression bool + DisableKeepAlives bool + ExpectContinueTimeout time.Duration + IdleConnTimeout time.Duration + MaxConnsPerHost int + MaxIdleConns int + MaxIdleConnsPerHost int + MaxResponseHeaderBytes int64 + Proxy func(*http.Request) (*url.URL, error) + ProxyConnectHeader http.Header + ResponseHeaderTimeout time.Duration + TLSClientConfig *tls.Config + TLSHandshakeTimeout time.Duration + TLSNextProto map[string]func(authority string, c *tls.Conn) http.RoundTripper + func (t *Transport) CancelRequest(req *http.Request) + func (t *Transport) CloseIdleConnections() + func (t *Transport) RegisterProtocol(scheme string, rt http.RoundTripper) + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) + type WroteRequestInfo struct + Err error