Documentation ¶
Index ¶
- Constants
- type Request
- func (r *Request) AddParam(key, value string) *Request
- func (r *Request) AddParams(param map[string]string) *Request
- func (r *Request) BasicAuth(user, password string) *Request
- func (r *Request) Proxy(proxy string) *Request
- func (r *Request) ReadText() string
- func (r *Request) Send() *Request
- func (r *Request) SetConnTimeOut(time int) *Request
- func (r *Request) SetHeadTimeOut(time int) *Request
- func (r *Request) SetRespTimeOut(time int) *Request
- func (r *Request) SetTimeOut(time int) *Request
- func (r *Request) WriteToFile(path string)
- type Requests
Constants ¶
View Source
const ( GET = "GET" POST = "POST" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest() *Request
func (*Request) SetHeadTimeOut ¶ added in v1.0.3
设置请求头的超时时间 已废弃: 请使用 SetRespTimeOut 来替代 SetHeadTimeOut 方法 Deprecated: use SetRespTimeOut replace SetHeadTimeOut
Source Files ¶
Click to show internal directories.
Click to hide internal directories.