Versions in this module Expand all Collapse all v0 v0.1.1 Jan 27, 2023 v0.1.0 Nov 28, 2022 Changes in this version + const MaxContentLength + var DefaultTransport http.RoundTripper + func HeaderCtxValue(ctx context.Context) http.Header type Client + func (c *Client) DoAndRead(req *http.Request) ([]byte, error) + func (c *Client) DoWithReader(req *http.Request, br io.ReaderFrom) error v0.0.4 Nov 18, 2022 Changes in this version + func CopyHeader(dst http.Header, src http.Header) + func CtxWithHeader(ctx context.Context, header http.Header) context.Context + func HeaderFromCtx(ctx context.Context) http.Header + func NewRoundTripper(cfg *TransportOptions) (http.RoundTripper, error) + type BodyReader interface + ReadFrom func(r io.Reader) (n int64, err error) + type Client struct + Header http.Header + func NewClient(rt http.RoundTripper) *Client + func (c *Client) Do(req *http.Request) ([]byte, error) + func (c *Client) DoWith(req *http.Request, br BodyReader) error + type Error struct + Body string + Code int + Header http.Header + Message string + func (e *Error) Error() string + type Growable interface + Grow func(n int) + type TransportOptions struct + DialTimeout time.Duration + DisableHTTP2 bool + IdleConnTimeout time.Duration + InsecureSkipVerify bool + MaxIdleConnsPerHost int + PingTimeout time.Duration + ReadIdleTimeout time.Duration + ResponseHeaderTimeout time.Duration