Documentation
¶
Index ¶
- type Opt
- type Request
- func (req *Request) Delete(url string, result interface{}) (int, error)
- func (req *Request) Exchange(url string, result interface{}) (int, error)
- func (req *Request) Get(url string, result interface{}) (int, error)
- func (req *Request) Head(url string, result interface{}) (int, error)
- func (req *Request) Options(url string, result interface{}) (int, error)
- func (req *Request) Patch(url string, result interface{}) (int, error)
- func (req *Request) Post(url string, result interface{}) (int, error)
- func (req *Request) Put(url string, result interface{}) (int, error)
- func (req *Request) SetBody(body interface{}) *Request
- func (req *Request) SetClient(client restclient.RestClient) *Request
- func (req *Request) SetHeaders(headers map[string]string) *Request
- func (req *Request) SetMethod(method string) *Request
- func (req *Request) SetParams(params map[string]string) *Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(req *Request)
func SetClient ¶
func SetClient(client restclient.RestClient) Opt
func SetHeaders ¶
type Request ¶
type Request struct { C restclient.RestClient // contains filtered or unexported fields }
func (*Request) SetClient ¶ added in v0.1.2
func (req *Request) SetClient(client restclient.RestClient) *Request
func (*Request) SetHeaders ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.