Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps a http.Client but only exposes the Do method to force consumers to always create a request with http.NewRequestWithContext().
func New ¶
TODO(labkode): harden it. https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779
func (*Client) GetNativeHTTP ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func CheckRedirect ¶
CheckRedirect provides a function to set a custom CheckRedirect.
func RoundTripper ¶
func RoundTripper(rt http.RoundTripper) Option
RoundTripper provides a function to set a custom RoundTripper.
Click to show internal directories.
Click to hide internal directories.