Versions in this module Expand all Collapse all v1 v1.53.0 Dec 9, 2025 Changes in this version + const AcceptAny + const AcceptCSS + const AcceptHTML + const AcceptJSON + const AcceptJavascript + const AcceptPlain + const AcceptSteam + const AcceptXML + const ContentTypeCSS + const ContentTypeFormData + const ContentTypeHTML + const ContentTypeJSON + const ContentTypeJavascript + const ContentTypePlain + const ContentTypeSteam + const ContentTypeXML + const ContentTypeXWwwFormURLencoded + var APP = &app + type Accept string + type AttrAccept struct + func Accept_(accept Accept) *AttrAccept + func (a *AttrAccept) Apply(client *HTTPClient) + type AttrAuthorization struct + func Authorization(username, password, title string) *AttrAuthorization + func (a *AttrAuthorization) Apply(client *HTTPClient) + type AttrAutoCopy struct + func AutoCopy(autoCopy bool) *AttrAutoCopy + func (a *AttrAutoCopy) Apply(client *HTTPClient) + type AttrBody struct + func Bytes(body []byte) *AttrBody + func CSS(body string) *AttrBody + func File(filename string) *AttrBody + func Form(body map[string]string) *AttrBody + func FormData(fields, files map[string]string) *AttrBody + func HTML(body string) *AttrBody + func JSON(body any) *AttrBody + func Javascript(body string) *AttrBody + func Plain(body string) *AttrBody + func Reader(body io.ReadCloser) *AttrBody + func XML(body any) *AttrBody + func (a *AttrBody) Apply(client *HTTPClient) + type AttrCert struct + func Cert(cert []byte) *AttrCert + func (a *AttrCert) Apply(client *HTTPClient) + type AttrContentType struct + func ContentType_(ct ContentType) *AttrContentType + func (a *AttrContentType) Apply(client *HTTPClient) + type AttrHeader struct + func AppendHeader(key string, values ...string) *AttrHeader + func AppendHeaders(headers http.Header) *AttrHeader + func SetHeader(key string, values ...string) *AttrHeader + func SetHeaders(headers http.Header) *AttrHeader + func (a *AttrHeader) Apply(client *HTTPClient) + type AttrMethod struct + func Method(method string) *AttrMethod + func (a *AttrMethod) Apply(client *HTTPClient) + type AttrQueries struct + func Queries(queries map[string]string) *AttrQueries + func (a *AttrQueries) Append(queries map[string]string) *AttrQueries + func (a *AttrQueries) AppendOne(key, value string) *AttrQueries + func (a *AttrQueries) Apply(client *HTTPClient) + type AttrTimeout struct + func Timeout(timeout time.Duration) *AttrTimeout + func (a *AttrTimeout) Apply(client *HTTPClient) + type AttrTransport struct + func Transport(transport *http.Transport) *AttrTransport + func TransportDefault() *AttrTransport + func (a *AttrTransport) Apply(client *HTTPClient) + type AttrURL struct + func URL(parts ...string) *AttrURL + func (a *AttrURL) Apply(client *HTTPClient) + type ContentType string + type HTTPClient struct + func Acquire() *HTTPClient + func DELETE(attrs ...HTTPClientAttributer) *HTTPClient + func GET(attrs ...HTTPClientAttributer) *HTTPClient + func HEAD(attrs ...HTTPClientAttributer) *HTTPClient + func New(attrs ...HTTPClientAttributer) *HTTPClient + func OPTIONS(attrs ...HTTPClientAttributer) *HTTPClient + func PATCH(attrs ...HTTPClientAttributer) *HTTPClient + func POST(attrs ...HTTPClientAttributer) *HTTPClient + func PUT(attrs ...HTTPClientAttributer) *HTTPClient + func TRACE(attrs ...HTTPClientAttributer) *HTTPClient + func (my *HTTPClient) Error() error + func (my *HTTPClient) GetBody() []byte + func (my *HTTPClient) GetCert() []byte + func (my *HTTPClient) GetClient() *http.Client + func (my *HTTPClient) GetHeaders() http.Header + func (my *HTTPClient) GetMethod() string + func (my *HTTPClient) GetQueries() map[string]string + func (my *HTTPClient) GetRawRequest() *http.Request + func (my *HTTPClient) GetRawResponse() *http.Response + func (my *HTTPClient) GetStatus() string + func (my *HTTPClient) GetStatusCode() int + func (my *HTTPClient) GetTimeout() time.Duration + func (my *HTTPClient) GetTransport() *http.Transport + func (my *HTTPClient) GetURL() string + func (my *HTTPClient) Release() + func (my *HTTPClient) Send() *HTTPClient + func (my *HTTPClient) SendWithRetry(count uint, interval time.Duration, ...) *HTTPClient + func (my *HTTPClient) SetAttrs(attrs ...HTTPClientAttributer) *HTTPClient + func (my *HTTPClient) ToBytes() []byte + func (my *HTTPClient) ToJSON(target any, keys ...any) *HTTPClient + func (my *HTTPClient) ToWriter(writer http.ResponseWriter) *HTTPClient + func (my *HTTPClient) ToXML(target any) *HTTPClient + type HTTPClientAttributer interface + Apply func(client *HTTPClient) + type HTTPClientBuilder struct + func (*HTTPClientBuilder) New(attrs ...HTTPClientAttributer) *HTTPClientBuilder + func (my *HTTPClientBuilder) GetClient() *HTTPClient