Documentation ¶
Rendered for windows/amd64
Index ¶
- func Get(url string) (*http.Response, error)
- func Head(url string) (*http.Response, error)
- func Post(url string, contentType string, body io.Reader) (*http.Response, error)
- func PostForm(url string, data url.Values) (*http.Response, error)
- type Client
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) Get(url string) (*http.Response, error)
- func (c *Client) Head(url string) (*http.Response, error)
- func (c *Client) Post(url string, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) PostForm(url string, data url.Values) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.11.0
type Client struct { Debug bool Jar http.CookieJar Timeout time.Duration Transport *http.Transport // contains filtered or unexported fields }
Client is a struct containing relevant metadata to make HTTP requests.
var DefaultClient *Client
DefaultClient is the default client similar to net/http.
func NewClient ¶ added in v0.11.0
NewClient will return a pointer to a new Client instance that simply wraps the net/http.Client type.
Click to show internal directories.
Click to hide internal directories.