Documentation
¶
Index ¶
- func LimitHTTPBody(client http.Client, size int64) *http.Client
- func NewDefaultClient(urlValidator url.Validator) *http.Client
- func NewLimitedDefaultClient(urlValidator url.Validator) *http.Client
- func NewTransport(dialFunc func(context.Context, string, string) (net.Conn, error)) *http.Transport
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LimitHTTPBody ¶ added in v0.64.0
func NewDefaultClient ¶
NewDefaultClient creates a client with sane defaults.
func NewLimitedDefaultClient ¶ added in v0.64.0
NewLimitedDefaultClient creates a client with a limit on the response body size.
Types ¶
Click to show internal directories.
Click to hide internal directories.