Documentation
¶
Index ¶
- func ClientFromContext(ctx context.Context) *http.Client
- func ContextWithClient(ctx context.Context, c *http.Client) context.Context
- func ContextWithDftTransport(ctx context.Context, t *http.Transport) context.Context
- func DftTransportFromContext(ctx context.Context) *http.Transport
- func GetShortConnClientContext(ctx context.Context, timeout time.Duration, transports ...HttpTransport) *http.Client
- type Client
- type HttpTransport
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithClient ¶
func ContextWithDftTransport ¶
Types ¶
type Client ¶
type Client struct {
Protocol string
Host string
Port uint16
Timeout time.Duration
RequestTsfmFactory *httptransport.RequestTsfmFactory
Transports []HttpTransport
NewError func(resp *http.Response) error
}
func (*Client) SetDefault ¶
func (c *Client) SetDefault()
type HttpTransport ¶
type HttpTransport func(rt http.RoundTripper) http.RoundTripper
Click to show internal directories.
Click to hide internal directories.