Versions in this module Expand all Collapse all v0 v0.0.6 Dec 7, 2023 v0.0.5 Dec 5, 2023 Changes in this version + var ErrEmptyFile = errors.New("empty file") + var ErrEmptyUrl = errors.New("empty url") + func NewClientPool() sync.Pool + type Client struct + func NewClient() *Client + func (c *Client) AddBodyByte(body []byte) *Client + func (c *Client) AddBodyBytes(bodyBytes []byte) *Client + func (c *Client) AddBodyStruct(object interface{}) *Client + func (c *Client) AddCookie(key, value string) *Client + func (c *Client) AddCookies(cookies Mapper) *Client + func (c *Client) AddFile(fileName, filePath string) *Client + func (c *Client) AddFiles(files Mapper) *Client + func (c *Client) AddHeader(key, value string) *Client + func (c *Client) AddHeaders(headers Mapper) *Client + func (c *Client) AddParam(key, value string) *Client + func (c *Client) AddParams(params Mapper) *Client + func (c *Client) Get(rawUrl string) (*Response, error) + func (c *Client) Post(url string) (*Response, error) + func (c *Client) SendFile(url string, options ...RequestOption) (*Response, error) + func (c *Client) SetCrt(certPath, keyPath string) *Client + func (c *Client) SetProxy(proxy string) *Client + func (c *Client) SetTimeout(duration time.Duration) *Client + type Mapper map[string]string + func NewCookies() Mapper + func NewFiles() Mapper + func NewHeaders() Mapper + func NewParams() Mapper + func (m Mapper) Get(key string) string + func (m Mapper) Set(key, value string) Mapper + type RequestCookies struct + type RequestFiles struct + type RequestHeaders struct + type RequestOption struct + type RequestParams struct + type Response struct + Body []byte + Cookie RequestCookies + Header RequestHeaders + StatusCode int