Versions in this module Expand all Collapse all v1 v1.1.0 Jul 15, 2025 v1.0.1 Apr 22, 2025 v1.0.0 Apr 8, 2025 Changes in this version + func RandomString() string + func SanitizeCookieName(n string) string + func SanitizeCookieValue(v string, quoted bool) string + type BasicAuth struct + Password string + Username string + type ClientOption func(*clientOptions) + func WithBaseURL(baseURL string) ClientOption + func WithCookieJar(jar http.CookieJar) ClientOption + func WithFollowRedirects(followRedirects bool, maxRedirects int) ClientOption + func WithLogger(logger resty.Logger) ClientOption + func WithProxy(proxy string) ClientOption + func WithTLSClientConfig(config *tls.Config) ClientOption + func WithTimeout(timeout time.Duration) ClientOption + func WithTransport(transport http.RoundTripper) ClientOption + type HTTPClient struct + func NewHTTPClient(options ...ClientOption) *HTTPClient + func (c *HTTPClient) Close() error + func (c *HTTPClient) Delete(url string, options *Options) (*Response, error) + func (c *HTTPClient) Get(url string, options *Options) (*Response, error) + func (c *HTTPClient) Head(url string, options *Options) (*Response, error) + func (c *HTTPClient) Options(url string, options *Options) (*Response, error) + func (c *HTTPClient) Patch(url string, options *Options) (*Response, error) + func (c *HTTPClient) Post(url string, options *Options) (*Response, error) + func (c *HTTPClient) Put(url string, options *Options) (*Response, error) + func (c *HTTPClient) Request(ctx context.Context, method, url string, options *Options) (*Response, error) + type Multipart struct + ContentType string + FileName string + type Options struct + BasicAuth *BasicAuth + BearerToken string + Body any + Cookies []*http.Cookie + Form map[string]string + Headers http.Header + JSON any + Multipart map[string]*Multipart + Query url.Values + type Response struct + func (r *Response) Ok() bool + type Transport struct + func NewTransport(tlsClientConfig *tls.Config, quicConfig *quic.Config) *Transport + func (t *Transport) Close() error + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) v0 v0.0.0-beta.6 Apr 8, 2025 v0.0.0-beta.5 Apr 7, 2025 v0.0.0-beta.4 Apr 3, 2025 v0.0.0-beta.3 Apr 1, 2025 v0.0.0-beta.2 Mar 31, 2025 v0.0.0-beta.1 Mar 29, 2025 v0.0.0-bata.2 Mar 31, 2025