Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Do(req *http.Request) (resp *http.Response, err error)
- func (c *Client) Get(url string) (resp *http.Response, err error)
- func (c *Client) GetWithAuth(url, username, password string) (resp *http.Response, err error)
- func (c *Client) Patch(url, contentType string, body io.Reader) (resp *http.Response, err error)
- func (c *Client) Post(url, contentType string, body io.Reader, username, password string) (resp *http.Response, err error)
- func (c *Client) PostForm(url string, data url.Values, username, password string) (resp *http.Response, err error)
- func (c *Client) PostJson(url string, body io.Reader, username, password string) (resp *http.Response, err error)
- func (c *Client) PostWithHeader(url, contentType string, body io.Reader, username, password string, ...) (resp *http.Response, err error)
- func (c *Client) Put(url, contentType string, body io.Reader, username, password string) (resp *http.Response, err error)
- func (c *Client) PutFile(url, contentType, file, username, password string) (resp *http.Response, err error)
- func (c *Client) PutJson(url string, body io.Reader, username, password string) (resp *http.Response, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultClient = &Client{client: defaultHttpClient}
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.