Versions in this module Expand all Collapse all v1 v1.1.0 Feb 19, 2023 v1.0.0 Feb 19, 2023 Changes in this version + const Delete + const FormType + const Get + const JsonType + const OtherType + const Patch + const Post + const Put + type Client struct + func NewClient(host string) *Client + func (c *Client) Curl(path string, method MethodType, data interface{}, cType ContentType) ([]byte, error) + func (c *Client) Delete(path string, data interface{}) ([]byte, error) + func (c *Client) Get(path string, data interface{}) ([]byte, error) + func (c *Client) Patch(path string, data interface{}) ([]byte, error) + func (c *Client) PatchByForm(path string, data interface{}) ([]byte, error) + func (c *Client) Post(path string, data interface{}) ([]byte, error) + func (c *Client) PostByForm(path string, data interface{}) ([]byte, error) + func (c *Client) Put(path string, data interface{}) ([]byte, error) + func (c *Client) PutByForm(path string, data interface{}) ([]byte, error) + func (c *Client) SetBody(body string) *Client + func (c *Client) SetCookies(cookies []*http.Cookie) *Client + func (c *Client) SetHeaders(headers map[string]string) *Client + func (c *Client) SetTimeout(timeout time.Duration) *Client + type ContentType string + type MethodType string