Documentation ¶
Index ¶
- Variables
- type Auth
- type Datas
- type DryRun
- 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) HttpRequest() *http.Request
- 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(n time.Duration)
- type Response
- func (resp *Response) Content() []byte
- func (resp *Response) Cookies() (cookies []*http.Cookie)
- func (resp *Response) Json(v interface{}) error
- func (resp *Response) ReloadContent() []byte
- func (resp *Response) ResponseDebug()
- func (resp *Response) SaveFile(filename string) error
- func (resp *Response) SetRequest(req *Request)
- func (resp *Response) Text() string
Constants ¶
This section is empty.
Variables ¶
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 // contains filtered or unexported fields }
func (*Request) ClearCookies ¶
func (req *Request) ClearCookies()
func (*Request) ClientSetCookies ¶
func (req *Request) ClientSetCookies()
func (*Request) HttpRequest ¶
func (*Request) RequestDebug ¶
func (req *Request) RequestDebug()
type Response ¶
func (*Response) ReloadContent ¶
func (*Response) SetRequest ¶
Click to show internal directories.
Click to hide internal directories.