Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(context context.Context, path string, headers http.Header) (*http.Response, error)
- func (c *Client) Generic(context context.Context, method, path string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Get(context context.Context, path string, headers http.Header) (*http.Response, error)
- func (c *Client) Patch(context context.Context, path string, body io.Reader, headers http.Header) (*http.Response, error)
- func (c *Client) Post(context context.Context, path string, body io.Reader, headers http.Header) (*http.Response, error)
- func (c *Client) Put(context context.Context, path string, body io.Reader, headers http.Header) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Delete ¶
func (c *Client) Delete(context context.Context, path string, headers http.Header) (*http.Response, error)
Delete perform a DELETE request using the given options
func (*Client) Generic ¶
func (c *Client) Generic(context context.Context, method, path string, body io.Reader, headers http.Header) (*http.Response, error)
Generic perform a request using the given options
func (*Client) Get ¶
func (c *Client) Get(context context.Context, path string, headers http.Header) (*http.Response, error)
Get perform a GET request using the given options
func (*Client) Patch ¶
func (c *Client) Patch(context context.Context, path string, body io.Reader, headers http.Header) (*http.Response, error)
Patch perform a PATCH request using the given options
Click to show internal directories.
Click to hide internal directories.