Documentation
¶
Index ¶
- Constants
- type Cookie
- type Header
- type Request
- func (r *Request) Do() (*Response, error)
- func (r *Request) DoTimeout(timeout time.Duration) (*Response, error)
- func (r *Request) Get(url string) (*Response, error)
- func (r *Request) Post(url string, body io.Reader) (*Response, error)
- func (r *Request) Put(url string, body io.Reader) (*Response, error)
- func (r *Request) SetHeader(key, val string)
- func (r *Request) SetQuery(key, val string)
- func (r *Request) SetQueryInt(key string, val int)
- type Response
Constants ¶
View Source
const ( MethodPost = fasthttp.MethodPost MethodGet = fasthttp.MethodGet MethodPut = fasthttp.MethodPut )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) SetQueryInt ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) Body ¶
func (r *Response) Body() io.ReadCloser
func (*Response) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.