Versions in this module Expand all Collapse all v1 v1.0.0 Aug 23, 2023 Changes in this version + const DELETE + const GET + const PATCH + const POST + const PUT + const TypeForm + const TypeFormData + const TypeJSON + const TypeMultipartFormData + const TypeUrlencoded + const TypeXML + func FormatURLParam(body map[string]any) (urlParam string) + type Client struct + ContentType string + FormString string + Header http.Header + Host string + HttpClient *http.Client + Timeout time.Duration + Transport *http.Transport + func NewClient() (client *Client) + func (c *Client) Delete(url string) (client *Client) + func (c *Client) EndBytes(ctx context.Context) (res *http.Response, bs []byte, err error) + func (c *Client) EndStruct(ctx context.Context, v any) (res *http.Response, err error) + func (c *Client) Get(url string) (client *Client) + func (c *Client) Patch(url string) (client *Client) + func (c *Client) Post(url string) (client *Client) + func (c *Client) Put(url string) (client *Client) + func (c *Client) SendBodyMap(bm map[string]any) (client *Client) + func (c *Client) SendMultipartBodyMap(bm map[string]any) (client *Client) + func (c *Client) SendString(encodeStr string) (client *Client) + func (c *Client) SendStruct(v any) (client *Client) + func (c *Client) SetBodySize(sizeMB int) (client *Client) + func (c *Client) SetHost(host string) (client *Client) + func (c *Client) SetTLSConfig(tlsCfg *tls.Config) (client *Client) + func (c *Client) SetTimeout(timeout time.Duration) (client *Client) + func (c *Client) SetTransport(transport *http.Transport) (client *Client) + func (c *Client) Type(typeStr RequestType) (client *Client) + type RequestType string