Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Get(url string, headers ...http.Header) (*core.Response, error) Post(url string, body interface{}, headers ...http.Header) (*core.Response, error) Put(url string, body interface{}, headers ...http.Header) (*core.Response, error) Patch(url string, body interface{}, headers ...http.Header) (*core.Response, error) Delete(url string, headers ...http.Header) (*core.Response, error) Options(url string, headers ...http.Header) (*core.Response, error) }
type ClientBuilder ¶
type ClientBuilder interface { SetHeaders(headers http.Header) ClientBuilder SetConnectionTimeout(timeout time.Duration) ClientBuilder SetResponseTimeout(timeout time.Duration) ClientBuilder SetMaxIdleConnections(connections int) ClientBuilder DisableTimeouts(disable bool) ClientBuilder SetHttpClient(c *http.Client) ClientBuilder SetUserAgent(userAgent string) ClientBuilder Build() Client }
func NewBuilder ¶
func NewBuilder() ClientBuilder
Click to show internal directories.
Click to hide internal directories.