Documentation
¶
Index ¶
- func DecompressGzip(resp *http.Response) ([]byte, error)
- func ReadResponseBody(resp *http.Response) ([]byte, error)
- type Client
- func (c *Client) Delete(url string) ([]byte, error)
- func (c *Client) Get(url string) ([]byte, error)
- func (c *Client) Header() http.Header
- func (c *Client) Post(url string, data []byte) ([]byte, error)
- func (c *Client) PostJson(url string, data interface{}) ([]byte, error)
- func (c *Client) Put(url string, data []byte) ([]byte, error)
- func (c *Client) PutJson(url string, data interface{}) ([]byte, error)
- func (c *Client) ReadJson(body []byte, v interface{}) error
- func (c *Client) Status() int
- func (c *Client) StatusText() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) StatusText ¶
Click to show internal directories.
Click to hide internal directories.