Documentation
¶
Index ¶
- type Body
- type HttpThird
- func (a *HttpThird) Delete(api string, params map[string]interface{}) (*Response, error)
- func (a *HttpThird) Get(api string, params map[string]interface{}) (*Response, error)
- func (a *HttpThird) Head(api string, params map[string]interface{}) (*Response, error)
- func (a *HttpThird) Post(api string, params map[string]interface{}) (*Response, error)
- func (a *HttpThird) Put(api string, params map[string]interface{}) (*Response, error)
- func (a *HttpThird) SetBaseAuth(username, password string)
- func (a *HttpThird) SetHeader(headers map[string]string)
- func (a *HttpThird) SetLogInfoFlag(on bool)
- func (a *HttpThird) SetTLSClientConfig(cfg *tls.Config)
- type PostFile
- type Response
- type RpcThird
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpThird ¶
type HttpThird struct {
Domain string
Hostname string
ConnectTimeout int
ReadWriteTimeout int
// contains filtered or unexported fields
}
封装 http 接口的基础类
func (*HttpThird) SetBaseAuth ¶
func (*HttpThird) SetTLSClientConfig ¶ added in v1.2.2
Click to show internal directories.
Click to hide internal directories.