Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2026 Changes in this version + var ErrBadGateway = errors.New("bad gateway") + var ErrBadRequest = errors.New("bad request") + var ErrConflict = errors.New("conflict") + var ErrConn = errors.New("connection") + var ErrExpectationFailed = errors.New("expectation failed") + var ErrFailedDependency = errors.New("failed dependency") + var ErrForbidden = errors.New("forbidden") + var ErrGatewayTimeout = errors.New("gateway timeout") + var ErrGone = errors.New("gone") + var ErrHTTPVersionNotSupported = errors.New("http version not supported") + var ErrInsufficientStorage = errors.New("insufficient storage") + var ErrInternalServerError = errors.New("internal server error") + var ErrInvalidCookiesType = errors.New("invalid cookies type") + var ErrInvalidHeadersType = errors.New("invalid headers type") + var ErrInvalidProxy = errors.New("invalid proxy") + var ErrInvalidProxyCheckURL = errors.New("invalid proxy check url") + var ErrInvalidProxyURL = errors.New("invalid proxy url") + var ErrLengthRequired = errors.New("length required") + var ErrLocked = errors.New("locked") + var ErrLoopDetected = errors.New("loop detected") + var ErrMethodNotAllowed = errors.New("method not allowed") + var ErrMisdirectedRequest = errors.New("misdirected request") + var ErrNetworkAuthenticationRequired = errors.New("network authentication required") + var ErrNotAcceptable = errors.New("not acceptable") + var ErrNotExtended = errors.New("not extended") + var ErrNotFound = errors.New("not found") + var ErrNotImplemented = errors.New("not implemented") + var ErrPaymentRequired = errors.New("payment required") + var ErrPreconditionFailed = errors.New("precondition failed") + var ErrPreconditionRequired = errors.New("precondition required") + var ErrProxyAuthRequired = errors.New("proxy authentication required") + var ErrRequestEntityTooLarge = errors.New("request entity too large") + var ErrRequestHeaderFieldsTooLarge = errors.New("request header fields too large") + var ErrRequestTimeout = errors.New("request timeout") + var ErrRequestURITooLong = errors.New("request uri too long") + var ErrRequestedRangeNotSatisfiable = errors.New("requested range not satisfiable") + var ErrServiceUnavailable = errors.New("service unavailable") + var ErrStatus = errors.New("status") + var ErrTeapot = errors.New("i'm a teapot") + var ErrTooEarly = errors.New("too early") + var ErrTooManyRequests = errors.New("too many requests") + var ErrUnauthorized = errors.New("unauthorized") + var ErrUnavailableForLegalReasons = errors.New("unavailable for legal reasons") + var ErrUnknownCode = errors.New("unknown status code") + var ErrUnmarshal = errors.New("unmarshal") + var ErrUnprocessableEntity = errors.New("unprocessable entity") + var ErrUnsupportedMediaType = errors.New("unsupported media type") + var ErrUpgradeRequired = errors.New("upgrade required") + var ErrVariantAlsoNegotiates = errors.New("variant also negotiates") + func CodeToErr(code int) error + func NewReqClient() *httpClient + type Client interface + Client func() *req.Client + Close func() + CloseIdleConnections func() + Connect func(ctx context.Context, url string, headers map[string]string) *req.Response + Delete func(ctx context.Context, url string, headers map[string]string) *req.Response + Do func(ctx context.Context, method, url string, headers map[string]string, body any) *req.Response + DoWithErrorHandling func(ctx context.Context, method, url string, headers map[string]string, body any) *req.Response + DoWithHTTPRequest func(request *http.Request) (*http.Response, error) + DoWithRequest func(request *req.Request) *req.Response + DoWithResult func(ctx context.Context, method, url string, headers map[string]string, body any, ...) *req.Response + Get func(ctx context.Context, url string, headers map[string]string) *req.Response + Head func(ctx context.Context, url string, headers map[string]string) *req.Response + Options func(ctx context.Context, url string, headers map[string]string) *req.Response + Patch func(ctx context.Context, url string, headers map[string]string, body any) *req.Response + Post func(ctx context.Context, url string, headers map[string]string, body any) *req.Response + Put func(ctx context.Context, url string, headers map[string]string, body any) *req.Response + SetCookiesArray func(cookies any) error + SetHeaders func(headers any) error + SetProxy func(proxyURL string, checkURL string) error + SetResponseBodyTransformer func(...) + Trace func(ctx context.Context, url string, headers map[string]string) *req.Response + type UnmarshallerFactory func() easyjson.Unmarshaler