Documentation ¶
Index ¶
- type Client
- func (client *Client) AddHeader(name, value string) *Client
- func (client *Client) BaseURL() string
- func (client *Client) DelHeader(name string) *Client
- func (client *Client) DeleteJSON(path string, data interface{}, out interface{}, headers map[string]string) (int, error)
- func (client *Client) GetJSON(path string, queryParams *url.Values, out interface{}, ...) (int, error)
- func (client *Client) Header(name string) (string, bool)
- func (client *Client) PostJSON(path string, data interface{}, out interface{}, headers map[string]string) (int, error)
- func (client *Client) PutJSON(path string, data interface{}, out interface{}, headers map[string]string) (int, error)
- func (client *Client) RequestJson(method, path string, queryParams *url.Values, body interface{}, ...) (int, error)
- func (client *Client) SetBaseURL(baseURL string) *Client
- func (client *Client) SetUserAgent(userAgent string) *Client
- func (client *Client) UserAgent() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) DeleteJSON ¶
func (*Client) RequestJson ¶
func (*Client) SetBaseURL ¶
func (*Client) SetUserAgent ¶
Click to show internal directories.
Click to hide internal directories.