Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithClient ¶ added in v1.9.2
func GetShortConnClient ¶
func GetShortConnClient(timeout time.Duration, httpTransports ...HttpTransport) *http.Client
Types ¶
type Client ¶
type Client struct {
Protocol string
Host string
Port int16
Timeout time.Duration
RequestTransformerMgr *httptransport.RequestTransformerMgr
HttpTransports []HttpTransport
NewError func(resp *http.Response) error
}
func (*Client) SetDefaults ¶
func (c *Client) SetDefaults()
type HttpTransport ¶
type HttpTransport func(rt http.RoundTripper) http.RoundTripper
type Result ¶
type Result struct {
TransformerMgr transformers.TransformerMgr
Response *http.Response
NewError func(resp *http.Response) error
Err error
}