Documentation ¶
Index ¶
- func BodyJSON(v interface{}) *bodyJSON
- type Client
- func (r *Client) Delete(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func (r *Client) Do(ctx context.Context, method, uri string, params ...interface{}) (*Resp, error)
- func (r *Client) Get(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func (r *Client) Patch(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func (r *Client) Post(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func (r *Client) Put(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func (r *Client) SetBaseClient(client HTTPClient) *Client
- func (r *Client) SetBaseHeaders(headers map[string]string) *Client
- func (r *Client) SetBaseURL(baseURL string) *Client
- func (r *Client) SetBaseURLs(baseURLs []string) *Client
- func (r *Client) SetBasicAuth(username, password string) *Client
- func (r *Client) SetTimeout(timeout time.Duration) *Client
- type HTTPClient
- type Headers
- type MapForm
- type MapJSON
- type Query
- type Resp
- func Delete(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func Get(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func Patch(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func Post(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
- func Put(ctx context.Context, uri string, params ...interface{}) (*Resp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetBaseClient ¶
func (r *Client) SetBaseClient(client HTTPClient) *Client
func (*Client) SetBaseURL ¶
func (*Client) SetBaseURLs ¶ added in v1.8.0
func (*Client) SetBasicAuth ¶
Click to show internal directories.
Click to hide internal directories.