Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(url string, headers http.Header) (*http.Response, error)
- func (c *Client) Do(request *http.Request) (*http.Response, error)
- func (c *Client) Get(url string, headers http.Header) (*http.Response, error)
- func (c *Client) Patch(url string, body io.Reader, headers http.Header) (*http.Response, error)
- func (c *Client) Post(url string, body io.Reader, headers http.Header) (*http.Response, error)
- func (c *Client) Put(url string, body io.Reader, headers http.Header) (*http.Response, error)
- type Option
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
}
Client is the http client implementation
type Option ¶
type Option func(*Client)
Option represents the client options
func WithHTTPClient ¶
WithHTTPClient sets a custom http client
func WithHTTPTimeout ¶
WithHTTPTimeout sets hystrix timeout
func WithRetrier ¶
WithRetrier sets the strategy for retrying
func WithRetryCount ¶
WithRetryCount sets the retry count for the hystrixHTTPClient
Click to show internal directories.
Click to hide internal directories.