Documentation ¶
Index ¶
- type Client
- func (c *Client) Clone() *Client
- func (c *Client) CloneAndAddRequestHeader(key, value string) *Client
- func (c *Client) Send(ctx context.Context, uri string, method string, body io.Reader, ...) (*Response, error)
- func (c *Client) SendRequest(ctx context.Context, uri string, method string, body io.Reader, ...) ([]byte, error)
- func (c Client) WithTimeout(timeout time.Duration) *Client
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Clone ¶
Clone is a temporary solution to the unexpected shared pointer field and race problem TODO: use latest `/util/client` for better api experience.
func (*Client) CloneAndAddRequestHeader ¶
Click to show internal directories.
Click to hide internal directories.