Documentation ¶
Index ¶
- func Get(url string, args map[string]string) (result string, err error)
- func Post(url, contentType string, args map[string]string) (result string, err error)
- type Client
- func (c *Client) Do(r *http.Request) (response *http.Response, err error)
- func (c *Client) Get(url string, values url.Values) (body []byte, statusCode int, err error)
- func (c *Client) Post(url string, values url.Values) (body []byte, statusCode int, err error)
- func (c *Client) PostData(url string, values []byte) (body []byte, statusCode int, err error)
- func (c *Client) PostJSON(url string, values interface{}) (body []byte, statusCode int, err error)
- func (c *Client) SetHeader(header *Header)
- func (c *Client) SetTimeout(timeout time.Duration)
- func (c *Client) SetTransport(transport http.RoundTripper)
- type Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Header *Header // contains filtered or unexported fields }
func NewHeaderClient ¶
func (*Client) SetTimeout ¶
func (*Client) SetTransport ¶
func (c *Client) SetTransport(transport http.RoundTripper)
Click to show internal directories.
Click to hide internal directories.