Documentation ¶
Index ¶
- func Do(method string, url string, headers http.Header, body io.Reader) ([]byte, *http.Response, error)
- func ToForm(data map[string]interface{}) url.Values
- type Req
- func (r *Req) Delete(path string) ([]byte, *http.Response, error)
- func (r *Req) Get(path string) ([]byte, *http.Response, error)
- func (r *Req) Head(path string) ([]byte, *http.Response, error)
- func (r *Req) Header(h http.Header) http.Header
- func (r *Req) Options(path string) ([]byte, *http.Response, error)
- func (r *Req) Post(path string, data map[string]interface{}) ([]byte, *http.Response, error)
- func (r *Req) Put(path string, data map[string]interface{}) ([]byte, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Req ¶
type Req struct {
// contains filtered or unexported fields
}
Req object
Click to show internal directories.
Click to hide internal directories.