Documentation ¶ Index ¶ func NewClient(config *Config) *http.Client func SendRequest(client *http.Client, req *http.Request) (*http.Response, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewClient ¶ func NewClient(config *Config) *http.Client NewClient return a http client func SendRequest ¶ func SendRequest(client *http.Client, req *http.Request) (*http.Response, error) SendRequest sends the request and close the response body Types ¶ type Config ¶ type Config struct { ConnectTimeoutMS int ConnKeepAliveMS int ExpectContinueTimeoutMS int IdleConnTimeoutMS int MaxAllIdleConns int MaxHostIdleConns int ResponseHeaderTimeoutMS int TLSHandshakeTimeoutMS int } Config contains config the init a new http client Source Files ¶ View all Source files httpclient.go Click to show internal directories. Click to hide internal directories.