Versions in this module Expand all Collapse all v0 v0.0.1 Jan 30, 2021 Changes in this version + func Init(iOpt *Option) + func Release() + type Engine struct + func Get() *Engine + func (E *Engine) BaseHeader(iBaseHeader []HTTPOption) + func (E *Engine) DO(iCtx context.Context, iReq *Request) (*Response, error) + func (E *Engine) GET(iCtx context.Context, iURL string, iParams map[string]string, ...) ([]byte, error) + func (E *Engine) JSON(iCtx context.Context, iURL string, iObject interface{}, iHeader ...HTTPOption) ([]byte, error) + func (E *Engine) POST(iCtx context.Context, iURL string, iArgs map[string]string, ...) ([]byte, error) + type HTTPOption func(req *http.Request) + func SetHeader(key string, value string) HTTPOption + type Option struct + DisableCompression bool + EnableHTTP2 bool + EnableProxy bool + IdleConnTimeout int + MaxIdleConns int + MaxIdleConnsPerHost int + ProxyAddr string + RetryCount int + RetryInterval int + SkipTLSVerify bool + type Request struct + Body []byte + Header []HTTPOption + Method string + URL string + type Response struct + Body []byte + Header http.Header + Status int + type RetryConfig struct