Documentation ¶
Index ¶
- type Client
- func (c *Client) AuthFork(username, password string) *Client
- func (c *Client) Delete(url string, result interface{}) (*napping.Response, error)
- func (c *Client) Fork(opts ClientOptions) *Client
- func (c *Client) Get(url string, params *url.Values, result interface{}) (*napping.Response, error)
- func (c *Client) Head(url string, result interface{}) (*napping.Response, error)
- func (c *Client) Options(url string, result interface{}) (*napping.Response, error)
- func (c *Client) Patch(url string, payload, result interface{}) (*napping.Response, error)
- func (c *Client) Post(url string, payload, result interface{}) (*napping.Response, error)
- func (c *Client) Put(url string, payload, result interface{}) (*napping.Response, error)
- func (c *Client) Url(urlpath string) string
- type ClientOptions
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *napping.Session *ClientOptions }
func NewClient ¶
func NewClient(opts ClientOptions) *Client
func (*Client) Fork ¶
func (c *Client) Fork(opts ClientOptions) *Client
Fork creates a new client off of the base client however it shares the same http.Client for efficiency reasons this prevents socket leaks from happening etc ...
type ClientOptions ¶
Click to show internal directories.
Click to hide internal directories.