Documentation ¶
Index ¶
- Constants
- type Client
- func (cl *Client) Send(method string, res interface{}) (*resty.Response, error)
- func (cl *Client) SetBody(body interface{}) *Client
- func (cl *Client) SetHeader(key string, val string) *Client
- func (cl *Client) SetPathParams(pathParams map[string]string) *Client
- func (cl *Client) SetQueryString(queryString string) *Client
- func (cl *Client) SetUrl(url string) *Client
- type Method
Constants ¶
View Source
const GetMethod = "GET"
View Source
const PostMethod = "POST"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶
func NewHttpClient() *Client
func (*Client) SetPathParams ¶
func (*Client) SetQueryString ¶
Click to show internal directories.
Click to hide internal directories.