Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(URL string, options ...Option) (*Client, error)
- func (c *Client) Do() (*Response, error)
- func (c *Client) DoDelete(URL string, options ...Option) (*Response, error)
- func (c *Client) DoGet(URL string, options ...Option) (*Response, error)
- func (c *Client) DoOption(URL string, options ...Option) (*Response, error)
- func (c *Client) DoPatch(URL string, options ...Option) (*Response, error)
- func (c *Client) DoPost(URL string, options ...Option) (*Response, error)
- func (c *Client) DoPut(URL string, options ...Option) (*Response, error)
- func (c *Client) DoTrace(URL string, options ...Option) (*Response, error)
- func (c *Client) Get(URL string, options ...Option) (*Client, error)
- func (c *Client) Option(URL string, options ...Option) (*Client, error)
- func (c *Client) Patch(URL string, options ...Option) (*Client, error)
- func (c *Client) Post(URL string, options ...Option) (*Client, error)
- func (c *Client) Put(URL string, options ...Option) (*Client, error)
- func (c *Client) Request(method, URL string, options ...Option) (*Client, error)
- func (c *Client) Trace(URL string, options ...Option) (*Client, error)
- type Option
- func Body(body interface{}) Option
- func ContentType(contentType string) Option
- func Header(header http.Header) Option
- func Header2(header map[string]string) Option
- func Header3(name, value string) Option
- func Param(values url.Values) Option
- func Param2(values map[string]string) Option
- func Param3(name, value string) Option
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.3.7
type Option ¶ added in v1.3.7
func ContentType ¶ added in v1.3.7
type Request ¶ added in v1.3.7
type Response ¶ added in v1.3.7
func (*Response) DataString ¶ added in v1.3.7
Click to show internal directories.
Click to hide internal directories.