Versions in this module Expand all Collapse all v0 v0.4.1 Sep 5, 2022 v0.4.0 Aug 30, 2022 Changes in this version + func GetJson(url string, jsonReq interface{}) ([]byte, error) + func GetJsonWithHeaders(url string, headers map[string]string, jsonReq interface{}) ([]byte, error) + func PostJson(url string, jsonReq interface{}) ([]byte, error) + func PostJsonWithHeaders(url string, headers map[string]string, jsonReq interface{}) ([]byte, error) + type Client struct + Cookies []*http.Cookie + Headers map[string]string + RequestData []byte + ResponseData []byte + RetryTimes int + StatusCode int + Url string + func NewClient(url string) *Client + func (c *Client) Get() error + func (c *Client) Post() error + func (c *Client) Request(method string) error + func (c *Client) RequestWithRetry(method string) error