Versions in this module Expand all Collapse all v1 v1.1.0 May 8, 2022 Changes in this version + func NewCustomResponse(handler func(res []byte, statusCode int, headers http.Header) (any, error)) *response v1.0.0 Apr 23, 2022 Changes in this version + const DELETE + const GET + const HEAD + const PATCH + const POST + const PUT + func BaseUrl(url string) option + func Client(cl *http.Client) option + func CustomError(data any) requestOption + func Debug(on bool) option + func Gzip() requestOption + func Headers(headers http.Header) option + func Logf(f func(string, ...any)) option + func NewClient(opts ...option) *client + func NewEmptyRequest() *request + func NewFormRequest(data any) (*request, error) + func NewJsonRequest(data any) (*request, error) + func NewJsonResponse(data any) *response + func NewRequest(data []byte) *request + func NewResponse() *response + func OverWriteHeaders() requestOption + func OverWriteQueryParams() requestOption + func QueryParams(queryParams url.Values) option + func SetOptions(c *client, opts ...option) + func SetOptionsStruct(o Options) option + func Timeout(d time.Duration) option + type Options struct + BaseUrl string + Client *http.Client + Debug bool + Headers http.Header + Logf func(string, ...any) + QueryParams url.Values + Timeout time.Duration + type ResponseError struct + func (e ResponseError) Data() any + func (e ResponseError) Error() string + func (e ResponseError) Headers() http.Header + func (e ResponseError) StatusCode() int Other modules containing this package github.com/mauserzjeh/pingo/v2