Documentation
¶
Overview ¶
Forked by github.com/asmcos/requests Modifyed by holimon
Index ¶
- Variables
- type Auth
- type Datas
- type Files
- type Header
- type Params
- type Request
- func (req *Request) ClearCookies()
- func (req *Request) ClientSetCookies()
- func (req *Request) Close()
- func (req *Request) Get(origurl string, args ...interface{}) (resp *Response, err error)
- func (req *Request) Post(origurl string, args ...interface{}) (resp *Response, err error)
- func (req *Request) PostJson(origurl string, args ...interface{}) (resp *Response, err error)
- func (req *Request) Proxy(proxyurl string)
- func (req *Request) RequestDebug()
- func (req *Request) SetCookie(cookie *http.Cookie)
- func (req *Request) SetTimeout(timeout time.Duration)
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var TIMEOUT time.Duration = time.Second * 5
View Source
var VERSION string = "0.8"
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Header *http.Header Client *http.Client Debug int Cookies []*http.Cookie Timeout bool // contains filtered or unexported fields }
func (*Request) ClearCookies ¶
func (req *Request) ClearCookies()
func (*Request) ClientSetCookies ¶
func (req *Request) ClientSetCookies()
func (*Request) RequestDebug ¶
func (req *Request) RequestDebug()
func (*Request) SetTimeout ¶
set timeout s = second
Click to show internal directories.
Click to hide internal directories.