Documentation
¶
Index ¶
- Constants
- func GetClient(serverName string) *http.Client
- func GetClientCustom(tr *http.Transport, http2Tr bool, GlobalTimeout time.Duration) (*http.Client, errors.Error)
- func GetClientError(serverName string) (*http.Client, errors.Error)
- func GetClientTimeout(serverName string, http2Tr bool, GlobalTimeout time.Duration) (*http.Client, errors.Error)
- func IsCodeError() bool
- type HTTP
Constants ¶
View Source
const ( TIMEOUT_30_SEC = 30 * time.Second TIMEOUT_10_SEC = 10 * time.Second TIMEOUT_5_SEC = 5 * time.Second TIMEOUT_1_SEC = 1 * time.Second )
View Source
const ( EMPTY_PARAMS errors.CodeError = iota + errors.MinPkgHttpCli URL_PARSE HTTP_CLIENT HTTP_REQUEST HTTP_DO IO_READ BUFFER_WRITE HTTP2_CONFIGURE )
Variables ¶
This section is empty.
Functions ¶
func GetClientCustom ¶ added in v1.4.5
func GetClientTimeout ¶
func IsCodeError ¶
func IsCodeError() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.