Documentation ¶
Index ¶
- func Server() service.Http
- type Client
- func (client *Client) Close()
- func (client *Client) Get(ctx context.Context, path string, header http.Header) (status int, respHeader http.Header, respBody []byte, err error)
- func (client *Client) Key() (key string)
- func (client *Client) Post(ctx context.Context, path string, header http.Header, body []byte) (status int, respHeader http.Header, respBody []byte, err error)
- type ClientOptions
- type Dialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientOptions ¶
type ClientOptions struct { MaxConns int MaxConnDuration time.Duration MaxIdleConnDuration time.Duration MaxIdemponentCallAttempts int ReadBufferSize int WriteBufferSize int ReadTimeout time.Duration WriteTimeout time.Duration MaxResponseBodySize int MaxConnWaitTimeout time.Duration }
func NewClientOptions ¶
func NewClientOptions(opt *service.FastHttpClientOptions) (v *ClientOptions, err error)
Click to show internal directories.
Click to hide internal directories.