Documentation
¶
Index ¶
- Variables
- func Get(ctx context.Context, url string, headers ...map[string]string) (*http.Response, []byte, error)
- func Post(ctx context.Context, url string, contentType string, body io.Reader, ...) (*http.Response, []byte, error)
- func PostForm(ctx context.Context, url string, data url.Values, headers ...map[string]string) (*http.Response, []byte, error)
- type Client
- func (c *Client) Do(req *http.Request, headers ...map[string]string) (*http.Response, []byte, error)
- func (c *Client) Get(ctx context.Context, url string, headers ...map[string]string) (*http.Response, []byte, error)
- func (c *Client) Post(ctx context.Context, url string, contentType string, body io.Reader, ...) (*http.Response, []byte, error)
- func (c *Client) PostForm(ctx context.Context, url string, data url.Values, headers ...map[string]string) (*http.Response, []byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &Client{http.DefaultClient, nil, "", ""}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.