Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2022 Changes in this version + var ErrNoCallback = "no callback has been set" + var ErrNoEncoding = "no encoding has been set or is not valid" + var ErrNoRequest = "no request has been set" + func PrintRecover() any + type APIClient struct + func NewAPIClient() *APIClient + func (c *APIClient) After(cb func()) + func (c *APIClient) Before(cb func()) + func (c *APIClient) ChangeRequest(cb func(rq *http.Request)) *APIClient + func (c *APIClient) Delete(url string) *APIClient + func (c *APIClient) Do(cb func(resp *http.Response)) + func (c *APIClient) DoDecodeTo(decodeTo interface{}, encoding Encoding, ...) + func (c *APIClient) Get(url string) *APIClient + func (c *APIClient) Head(url string) *APIClient + func (c *APIClient) NoRecover() *APIClient + func (c *APIClient) OnError(cb func(err error) bool) *APIClient + func (c *APIClient) Options(url string) *APIClient + func (c *APIClient) Patch(url string) *APIClient + func (c *APIClient) Post(url string) *APIClient + func (c *APIClient) Put(url string) *APIClient + func (c *APIClient) Trace(url string) *APIClient + func (c *APIClient) WithCookie(cookie *http.Cookie) *APIClient + func (c *APIClient) WithData(formData map[string]string, encoding Encoding, file ...File) *APIClient + func (c *APIClient) WithHeaders(headers map[string]string) *APIClient + func (c *APIClient) WithQuery(query map[string]string) *APIClient + type Encoding string + const FORM_URL_ENCODED + const JSON + const MULTIPART_FORM + const XML + type File struct + FieldName string + FileName string + Reader io.Reader + type Methods string + const DELETE + const GET + const HEAD + const OPTIONS + const PATCH + const POST + const PUT + const TRACE