Documentation ¶
Index ¶
- type H
- type Request
- func (r *Request) AddParams(key, value string) *Request
- func (r *Request) Cancel() bool
- func (r *Request) CookieAdd(cookies ...*http.Cookie) *Request
- func (r *Request) Delete(url string) *Request
- func (r *Request) Get(url string) *Request
- func (r *Request) Head(url string) *Request
- func (r *Request) HeaderAdd(key, value string) *Request
- func (r *Request) HeaderClear() *Request
- func (r *Request) HeaderRemove(key string) *Request
- func (r *Request) Options(url string) *Request
- func (r *Request) Patch(url string) *Request
- func (r *Request) Post(url string) *Request
- func (r *Request) Put(url string) *Request
- func (r *Request) Request(method, url string) *Request
- func (r *Request) SetBody(body []byte) *Request
- func (r *Request) SetContentType(contentType string) *Request
- func (r *Request) SetHeaders(headers H) *Request
- func (r *Request) SetJson(data interface{}) *Request
- func (r *Request) Start() (Response, error)
- type Response
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Url string Params map[string]string Method string Headers H Body []byte ContentType string Cookies []*http.Cookie Timeout time.Duration // contains filtered or unexported fields }
func NewRequest ¶
func NewRequest() *Request
func (*Request) HeaderClear ¶
func (*Request) HeaderRemove ¶
func (*Request) SetContentType ¶
func (*Request) SetHeaders ¶
Click to show internal directories.
Click to hide internal directories.