Documentation
¶
Index ¶
- func DumpResponseBodyToDisk(res *http.Response) (path string, err error)
- type Client
- func (c *Client) Client() *http.Client
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) Get(ctx context.Context, url string) (*http.Response, error)
- func (c *Client) RoundTrip(req *http.Request) (*http.Response, error)
- func (c *Client) WithOptions(options ...Option) *Client
- type Middleware
- type MiddlewareFunc
- type Option
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) WithOptions ¶
type MiddlewareFunc ¶
type MiddlewareFunc func(Middleware) Middleware
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithMiddleware ¶
func WithMiddleware(middleware MiddlewareFunc, options ...bool) Option
func WithSkipRedirects ¶
func WithSkipRedirects() Option
func WithTimeout ¶
func WithUserAgent ¶
Click to show internal directories.
Click to hide internal directories.