SYMBOL INDEX (1073 symbols across 37 files) FILE: benchmark_test.go function Benchmark_parseRequestURL_PathParams (line 15) | func Benchmark_parseRequestURL_PathParams(b *testing.B) { function Benchmark_parseRequestURL_QueryParams (line 39) | func Benchmark_parseRequestURL_QueryParams(b *testing.B) { function Benchmark_parseRequestHeader (line 57) | func Benchmark_parseRequestHeader(b *testing.B) { function Benchmark_parseRequestBody_string (line 76) | func Benchmark_parseRequestBody_string(b *testing.B) { function Benchmark_parseRequestBody_byte (line 88) | func Benchmark_parseRequestBody_byte(b *testing.B) { function Benchmark_parseRequestBody_reader (line 100) | func Benchmark_parseRequestBody_reader(b *testing.B) { function Benchmark_parseRequestBody_struct (line 112) | func Benchmark_parseRequestBody_struct(b *testing.B) { function Benchmark_parseRequestBody_struct_xml (line 128) | func Benchmark_parseRequestBody_struct_xml(b *testing.B) { function Benchmark_parseRequestBody_map (line 144) | func Benchmark_parseRequestBody_map(b *testing.B) { function Benchmark_parseRequestBody_slice (line 159) | func Benchmark_parseRequestBody_slice(b *testing.B) { function Benchmark_parseRequestBody_FormData (line 171) | func Benchmark_parseRequestBody_FormData(b *testing.B) { function Benchmark_parseRequestBody_MultiPart (line 184) | func Benchmark_parseRequestBody_MultiPart(b *testing.B) { type benchmarkStringer (line 208) | type benchmarkStringer struct method String (line 212) | func (s benchmarkStringer) String() string { function Benchmark_formatAnyToString_string (line 217) | func Benchmark_formatAnyToString_string(b *testing.B) { function Benchmark_formatAnyToString_int (line 224) | func Benchmark_formatAnyToString_int(b *testing.B) { function Benchmark_formatAnyToString_bool (line 231) | func Benchmark_formatAnyToString_bool(b *testing.B) { function Benchmark_formatAnyToString_int64 (line 238) | func Benchmark_formatAnyToString_int64(b *testing.B) { function Benchmark_formatAnyToString_stringSlice (line 245) | func Benchmark_formatAnyToString_stringSlice(b *testing.B) { function Benchmark_formatAnyToString_time (line 253) | func Benchmark_formatAnyToString_time(b *testing.B) { function Benchmark_formatAnyToString_byteSlice (line 260) | func Benchmark_formatAnyToString_byteSlice(b *testing.B) { function Benchmark_formatAnyToString_float64 (line 267) | func Benchmark_formatAnyToString_float64(b *testing.B) { function Benchmark_formatAnyToString_int32 (line 275) | func Benchmark_formatAnyToString_int32(b *testing.B) { function Benchmark_formatAnyToString_int16 (line 282) | func Benchmark_formatAnyToString_int16(b *testing.B) { function Benchmark_formatAnyToString_int8 (line 289) | func Benchmark_formatAnyToString_int8(b *testing.B) { function Benchmark_formatAnyToString_uint64 (line 297) | func Benchmark_formatAnyToString_uint64(b *testing.B) { function Benchmark_formatAnyToString_uint32 (line 304) | func Benchmark_formatAnyToString_uint32(b *testing.B) { function Benchmark_formatAnyToString_uint16 (line 311) | func Benchmark_formatAnyToString_uint16(b *testing.B) { function Benchmark_formatAnyToString_uint8 (line 318) | func Benchmark_formatAnyToString_uint8(b *testing.B) { function Benchmark_formatAnyToString_uint (line 325) | func Benchmark_formatAnyToString_uint(b *testing.B) { function Benchmark_formatAnyToString_float32 (line 333) | func Benchmark_formatAnyToString_float32(b *testing.B) { function Benchmark_formatAnyToString_stringer (line 340) | func Benchmark_formatAnyToString_stringer(b *testing.B) { function Benchmark_formatAnyToString_default (line 347) | func Benchmark_formatAnyToString_default(b *testing.B) { FILE: cert_watcher_test.go type certPaths (line 24) | type certPaths struct function TestClient_SetRootCertificateWatcher (line 31) | func TestClient_SetRootCertificateWatcher(t *testing.T) { function generateCerts (line 121) | func generateCerts(t *testing.T, paths certPaths) { function generateRootCA (line 133) | func generateRootCA(keyPath, certPath string) (*rsa.PrivateKey, []byte, ... function generateTLSCert (line 184) | func generateTLSCert(keyPath, certPath string, rootKey *rsa.PrivateKey, ... function generateKey (line 229) | func generateKey() (*rsa.PrivateKey, error) { function savePEMKey (line 233) | func savePEMKey(fileName string, key *rsa.PrivateKey) error { function savePEMCert (line 248) | func savePEMCert(fileName string, cert []byte) error { FILE: circuit_breaker.go type CircuitBreakerTriggerHook (line 21) | type CircuitBreakerTriggerHook type CircuitBreakerStateChangeHook (line 24) | type CircuitBreakerStateChangeHook type CircuitBreakerState (line 27) | type CircuitBreakerState type group (line 31) | type group interface type totalAndFailures (line 38) | type totalAndFailures struct method op (line 43) | func (tf totalAndFailures) op(g totalAndFailures) totalAndFailures { method empty (line 49) | func (tf totalAndFailures) empty() totalAndFailures { method inverse (line 53) | func (tf totalAndFailures) inverse() totalAndFailures { type slidingWindow (line 60) | type slidingWindow struct function newSlidingWindow (line 69) | func newSlidingWindow[G group[G]](empty func() G, interval time.Duration... method Add (line 79) | func (sw *slidingWindow[G]) Add(val G) { method Get (line 113) | func (sw *slidingWindow[G]) Get() G { method SetInterval (line 119) | func (sw *slidingWindow[G]) SetInterval(interval time.Duration) { constant CircuitBreakerStateClosed (line 127) | CircuitBreakerStateClosed CircuitBreakerState = iota constant CircuitBreakerStateOpen (line 130) | CircuitBreakerStateOpen constant CircuitBreakerStateHalfOpen (line 133) | CircuitBreakerStateHalfOpen type CircuitBreaker (line 150) | type CircuitBreaker struct method OnTrigger (line 215) | func (cb *CircuitBreaker) OnTrigger(hooks ...CircuitBreakerTriggerHook... method onTriggerHooks (line 223) | func (cb *CircuitBreaker) onTriggerHooks(req *Request, err error) { method OnStateChange (line 232) | func (cb *CircuitBreaker) OnStateChange(hooks ...CircuitBreakerStateCh... method onStateChangeHooks (line 240) | func (cb *CircuitBreaker) onStateChangeHooks(oldState, newState Circui... method getState (line 258) | func (cb *CircuitBreaker) getState() CircuitBreakerState { method allow (line 262) | func (cb *CircuitBreaker) allow() error { method applyPolicies (line 270) | func (cb *CircuitBreaker) applyPolicies(resp *http.Response) { method open (line 318) | func (cb *CircuitBreaker) open() { method changeState (line 326) | func (cb *CircuitBreaker) changeState(state CircuitBreakerState) { function NewCircuitBreakerWithCount (line 175) | func NewCircuitBreakerWithCount(failureThreshold uint64, successThreshol... function NewCircuitBreakerWithRatio (line 187) | func NewCircuitBreakerWithRatio(failureRatio float64, minRequests uint64, function newCircuitBreaker (line 196) | func newCircuitBreaker(resetTimeout time.Duration, policies ...CircuitBr... type CircuitBreakerPolicy (line 250) | type CircuitBreakerPolicy function CircuitBreaker5xxPolicy (line 254) | func CircuitBreaker5xxPolicy(resp *http.Response) bool { FILE: circuit_breaker_test.go function TestCircuitBreakerCountBased (line 18) | func TestCircuitBreakerCountBased(t *testing.T) { function TestCircuitBreaker5xxPolicy (line 82) | func TestCircuitBreaker5xxPolicy(t *testing.T) { function TestCircuitBreakerCountBasedOpensAndAllow (line 90) | func TestCircuitBreakerCountBasedOpensAndAllow(t *testing.T) { function TestCircuitBreakerCountBasedHalfOpenToClosedOnSuccess (line 123) | func TestCircuitBreakerCountBasedHalfOpenToClosedOnSuccess(t *testing.T) { function TestCircuitBreakerRatioBasedOpenToClosed (line 153) | func TestCircuitBreakerRatioBasedOpenToClosed(t *testing.T) { function TestCircuitBreakerNewStateAndPolicies (line 181) | func TestCircuitBreakerNewStateAndPolicies(t *testing.T) { function TestCircuitBreakerChangeStateClearsCounts (line 190) | func TestCircuitBreakerChangeStateClearsCounts(t *testing.T) { function TestCircuitBreakerAllowDuringHalfOpen (line 203) | func TestCircuitBreakerAllowDuringHalfOpen(t *testing.T) { function TestCircuitBreakerOnTriggerHooks (line 215) | func TestCircuitBreakerOnTriggerHooks(t *testing.T) { function TestCircuitBreakerOnStateChangeHooks (line 231) | func TestCircuitBreakerOnStateChangeHooks(t *testing.T) { function TestCircuitBreakerMultipleHooksAreCalled (line 249) | func TestCircuitBreakerMultipleHooksAreCalled(t *testing.T) { function TestCircuitBreakerConcurrentOnTriggerRegistration (line 267) | func TestCircuitBreakerConcurrentOnTriggerRegistration(t *testing.T) { function TestCircuitBreakerConcurrentOnStateChangeRegistration (line 289) | func TestCircuitBreakerConcurrentOnStateChangeRegistration(t *testing.T) { function TestCircuitBreakerSlidingWindow1SetInterval (line 311) | func TestCircuitBreakerSlidingWindow1SetInterval(t *testing.T) { function TestCircuitBreakerSlidingWindow2SetInterval (line 324) | func TestCircuitBreakerSlidingWindow2SetInterval(t *testing.T) { function TestCircuitBreakerSlidingWindowConcurrentAddGet (line 332) | func TestCircuitBreakerSlidingWindowConcurrentAddGet(t *testing.T) { function TestCircuitBreakerTotalAndFailuresOperations (line 350) | func TestCircuitBreakerTotalAndFailuresOperations(t *testing.T) { function TestCircuitBreakerSlidingWindowResetWhenElapsedExceedsBuckets (line 367) | func TestCircuitBreakerSlidingWindowResetWhenElapsedExceedsBuckets(t *te... FILE: client.go constant MethodGet (line 28) | MethodGet = "GET" constant MethodPost (line 31) | MethodPost = "POST" constant MethodPut (line 34) | MethodPut = "PUT" constant MethodDelete (line 37) | MethodDelete = "DELETE" constant MethodPatch (line 40) | MethodPatch = "PATCH" constant MethodHead (line 43) | MethodHead = "HEAD" constant MethodOptions (line 46) | MethodOptions = "OPTIONS" constant MethodTrace (line 49) | MethodTrace = "TRACE" constant defaultWatcherPoolingInterval (line 53) | defaultWatcherPoolingInterval = 24 * time.Hour type RequestMiddleware (line 87) | type RequestMiddleware type ResponseMiddleware (line 90) | type ResponseMiddleware type ErrorHook (line 93) | type ErrorHook type SuccessHook (line 96) | type SuccessHook type CloseHook (line 99) | type CloseHook type RequestFunc (line 102) | type RequestFunc type TLSClientConfiger (line 106) | type TLSClientConfiger interface type TransportSettings (line 117) | type TransportSettings struct type Client (line 171) | type Client struct method BaseURL (line 245) | func (c *Client) BaseURL() string { method SetBaseURL (line 259) | func (c *Client) SetBaseURL(url string) *Client { method LoadBalancer (line 268) | func (c *Client) LoadBalancer() LoadBalancer { method SetLoadBalancer (line 275) | func (c *Client) SetLoadBalancer(b LoadBalancer) *Client { method Header (line 283) | func (c *Client) Header() http.Header { method SetHeader (line 300) | func (c *Client) SetHeader(header, value string) *Client { method SetHeaderAny (line 318) | func (c *Client) SetHeaderAny(header string, value any) *Client { method SetHeaders (line 338) | func (c *Client) SetHeaders(headers map[string]string) *Client { method SetHeaderVerbatim (line 358) | func (c *Client) SetHeaderVerbatim(header, value string) *Client { method SetHeaderVerbatimAny (line 376) | func (c *Client) SetHeaderVerbatimAny(header string, value any) *Client { method Context (line 385) | func (c *Client) Context() context.Context { method SetContext (line 393) | func (c *Client) SetContext(ctx context.Context) *Client { method CookieJar (line 401) | func (c *Client) CookieJar() http.CookieJar { method SetCookieJar (line 411) | func (c *Client) SetCookieJar(jar http.CookieJar) *Client { method Cookies (line 419) | func (c *Client) Cookies() []*http.Cookie { method SetCookie (line 432) | func (c *Client) SetCookie(hc *http.Cookie) *Client { method SetCookies (line 455) | func (c *Client) SetCookies(cs []*http.Cookie) *Client { method QueryParams (line 463) | func (c *Client) QueryParams() url.Values { method SetQueryParam (line 482) | func (c *Client) SetQueryParam(param, value string) *Client { method SetQueryParamAny (line 502) | func (c *Client) SetQueryParamAny(param string, value any) *Client { method SetQueryParams (line 524) | func (c *Client) SetQueryParams(params map[string]string) *Client { method FormData (line 533) | func (c *Client) FormData() url.Values { method SetFormData (line 550) | func (c *Client) SetFormData(data map[string]string) *Client { method SetBasicAuth (line 571) | func (c *Client) SetBasicAuth(username, password string) *Client { method AuthToken (line 579) | func (c *Client) AuthToken() string { method HeaderAuthorizationKey (line 586) | func (c *Client) HeaderAuthorizationKey() string { method SetHeaderAuthorizationKey (line 597) | func (c *Client) SetHeaderAuthorizationKey(k string) *Client { method SetAuthToken (line 617) | func (c *Client) SetAuthToken(token string) *Client { method AuthScheme (line 627) | func (c *Client) AuthScheme() string { method SetAuthScheme (line 650) | func (c *Client) SetAuthScheme(scheme string) *Client { method SetDigestAuth (line 674) | func (c *Client) SetDigestAuth(username, password string) *Client { method R (line 684) | func (c *Client) R() *Request { method NewRequest (line 734) | func (c *Client) NewRequest() *Request { method SetRequestMiddlewares (line 754) | func (c *Client) SetRequestMiddlewares(middlewares ...RequestMiddlewar... method SetResponseMiddlewares (line 779) | func (c *Client) SetResponseMiddlewares(middlewares ...ResponseMiddlew... method requestMiddlewares (line 786) | func (c *Client) requestMiddlewares() []RequestMiddleware { method AddRequestMiddleware (line 801) | func (c *Client) AddRequestMiddleware(m RequestMiddleware) *Client { method responseMiddlewares (line 809) | func (c *Client) responseMiddlewares() []ResponseMiddleware { method AddResponseMiddleware (line 826) | func (c *Client) AddResponseMiddleware(m ResponseMiddleware) *Client { method OnError (line 850) | func (c *Client) OnError(hooks ...ErrorHook) *Client { method OnSuccess (line 865) | func (c *Client) OnSuccess(hooks ...SuccessHook) *Client { method OnInvalid (line 880) | func (c *Client) OnInvalid(hooks ...ErrorHook) *Client { method OnPanic (line 898) | func (c *Client) OnPanic(hooks ...ErrorHook) *Client { method OnClose (line 907) | func (c *Client) OnClose(hooks ...CloseHook) *Client { method ContentTypeEncoders (line 915) | func (c *Client) ContentTypeEncoders() map[string]ContentTypeEncoder { method AddContentTypeEncoder (line 924) | func (c *Client) AddContentTypeEncoder(ct string, e ContentTypeEncoder... method inferContentTypeEncoder (line 931) | func (c *Client) inferContentTypeEncoder(ct ...string) (ContentTypeEnc... method ContentTypeDecoders (line 943) | func (c *Client) ContentTypeDecoders() map[string]ContentTypeDecoder { method AddContentTypeDecoder (line 952) | func (c *Client) AddContentTypeDecoder(ct string, d ContentTypeDecoder... method inferContentTypeDecoder (line 959) | func (c *Client) inferContentTypeDecoder(ct ...string) (ContentTypeDec... method ContentDecompressers (line 971) | func (c *Client) ContentDecompressers() map[string]ContentDecompresser { method AddContentDecompresser (line 983) | func (c *Client) AddContentDecompresser(k string, d ContentDecompresse... method ContentDecompresserKeys (line 996) | func (c *Client) ContentDecompresserKeys() string { method SetContentDecompresserKeys (line 1011) | func (c *Client) SetContentDecompresserKeys(keys []string) *Client { method SetCircuitBreaker (line 1032) | func (c *Client) SetCircuitBreaker(b *CircuitBreaker) *Client { method IsDebug (line 1040) | func (c *Client) IsDebug() bool { method SetDebug (line 1056) | func (c *Client) SetDebug(d bool) *Client { method DebugBodyLimit (line 1064) | func (c *Client) DebugBodyLimit() int { method SetDebugBodyLimit (line 1074) | func (c *Client) SetDebugBodyLimit(sl int) *Client { method debugLogCallbackFunc (line 1081) | func (c *Client) debugLogCallbackFunc() DebugLogCallbackFunc { method OnDebugLog (line 1089) | func (c *Client) OnDebugLog(dlc DebugLogCallbackFunc) *Client { method debugLogFormatterFunc (line 1100) | func (c *Client) debugLogFormatterFunc() DebugLogFormatterFunc { method SetDebugLogFormatter (line 1107) | func (c *Client) SetDebugLogFormatter(df DebugLogFormatterFunc) *Client { method IsDisableWarn (line 1115) | func (c *Client) IsDisableWarn() bool { method SetLoggerWarnLevel (line 1126) | func (c *Client) SetLoggerWarnLevel(d bool) *Client { method IsMethodGetAllowPayload (line 1135) | func (c *Client) IsMethodGetAllowPayload() bool { method SetMethodGetAllowPayload (line 1147) | func (c *Client) SetMethodGetAllowPayload(allow bool) *Client { method IsMethodDeleteAllowPayload (line 1158) | func (c *Client) IsMethodDeleteAllowPayload() bool { method SetMethodDeleteAllowPayload (line 1172) | func (c *Client) SetMethodDeleteAllowPayload(allow bool) *Client { method Logger (line 1180) | func (c *Client) Logger() Logger { method SetLogger (line 1189) | func (c *Client) SetLogger(l Logger) *Client { method Timeout (line 1197) | func (c *Client) Timeout() time.Duration { method SetTimeout (line 1210) | func (c *Client) SetTimeout(timeout time.Duration) *Client { method ResultError (line 1219) | func (c *Client) ResultError() reflect.Type { method SetResultError (line 1233) | func (c *Client) SetResultError(v any) *Client { method newErrorInterface (line 1240) | func (c *Client) newErrorInterface() any { method SetRedirectPolicy (line 1257) | func (c *Client) SetRedirectPolicy(policies ...RedirectPolicy) *Client { method RetryCount (line 1272) | func (c *Client) RetryCount() int { method SetRetryCount (line 1290) | func (c *Client) SetRetryCount(count int) *Client { method RetryWaitTime (line 1299) | func (c *Client) RetryWaitTime() time.Duration { method SetRetryWaitTime (line 1308) | func (c *Client) SetRetryWaitTime(waitTime time.Duration) *Client { method RetryMaxWaitTime (line 1317) | func (c *Client) RetryMaxWaitTime() time.Duration { method SetRetryMaxWaitTime (line 1326) | func (c *Client) SetRetryMaxWaitTime(maxWaitTime time.Duration) *Client { method RetryDelayStrategy (line 1337) | func (c *Client) RetryDelayStrategy() RetryDelayStrategyFunc { method SetRetryDelayStrategy (line 1348) | func (c *Client) SetRetryDelayStrategy(rs RetryDelayStrategyFunc) *Cli... method IsRetryDefaultConditions (line 1359) | func (c *Client) IsRetryDefaultConditions() bool { method SetRetryDefaultConditions (line 1369) | func (c *Client) SetRetryDefaultConditions(b bool) *Client { method IsRetryAllowNonIdempotent (line 1380) | func (c *Client) IsRetryAllowNonIdempotent() bool { method SetRetryAllowNonIdempotent (line 1394) | func (c *Client) SetRetryAllowNonIdempotent(b bool) *Client { method RetryConditions (line 1402) | func (c *Client) RetryConditions() []RetryConditionFunc { method AddRetryConditions (line 1420) | func (c *Client) AddRetryConditions(conditions ...RetryConditionFunc) ... method RetryHooks (line 1428) | func (c *Client) RetryHooks() []RetryHookFunc { method AddRetryHooks (line 1442) | func (c *Client) AddRetryHooks(hooks ...RetryHookFunc) *Client { method isHedgingEnabled (line 1450) | func (c *Client) isHedgingEnabled() bool { method Hedging (line 1458) | func (c *Client) Hedging() *Hedging { method SetHedging (line 1467) | func (c *Client) SetHedging(h *Hedging) *Client { method TLSClientConfig (line 1512) | func (c *Client) TLSClientConfig() *tls.Config { method SetTLSClientConfig (line 1530) | func (c *Client) SetTLSClientConfig(tlsConfig *tls.Config) *Client { method ProxyURL (line 1554) | func (c *Client) ProxyURL() *url.URL { method SetProxy (line 1569) | func (c *Client) SetProxy(proxyURL string) *Client { method RemoveProxy (line 1592) | func (c *Client) RemoveProxy() *Client { method SetCertificateFromFile (line 1610) | func (c *Client) SetCertificateFromFile(certFilePath, certKeyFilePath ... method SetCertificateFromString (line 1632) | func (c *Client) SetCertificateFromString(certStr, certKeyStr string) ... method SetCertificates (line 1652) | func (c *Client) SetCertificates(certs ...tls.Certificate) *Client { method SetRootCertificates (line 1680) | func (c *Client) SetRootCertificates(pemFilePaths ...string) *Client { method SetRootCertificatesWatcher (line 1701) | func (c *Client) SetRootCertificatesWatcher(options *CertWatcherOption... method SetRootCertificateFromString (line 1717) | func (c *Client) SetRootCertificateFromString(pemCerts string) *Client { method SetClientRootCertificates (line 1737) | func (c *Client) SetClientRootCertificates(pemFilePaths ...string) *Cl... method SetClientRootCertificatesWatcher (line 1758) | func (c *Client) SetClientRootCertificatesWatcher(options *CertWatcher... method SetClientRootCertificateFromString (line 1774) | func (c *Client) SetClientRootCertificateFromString(pemCerts string) *... method handleCAs (line 1779) | func (c *Client) handleCAs(scope string, permCerts []byte) { method initCertWatcher (line 1802) | func (c *Client) initCertWatcher(pemFilePath, scope string, options *C... method ResponseSaveDirectory (line 1857) | func (c *Client) ResponseSaveDirectory() string { method SetResponseSaveDirectory (line 1868) | func (c *Client) SetResponseSaveDirectory(dirPath string) *Client { method IsResponseSaveToFile (line 1876) | func (c *Client) IsResponseSaveToFile() bool { method SetResponseSaveToFile (line 1894) | func (c *Client) SetResponseSaveToFile(save bool) *Client { method HTTPTransport (line 1903) | func (c *Client) HTTPTransport() (*http.Transport, error) { method Transport (line 1914) | func (c *Client) Transport() http.RoundTripper { method SetTransport (line 1936) | func (c *Client) SetTransport(transport http.RoundTripper) *Client { method Scheme (line 1948) | func (c *Client) Scheme() string { method SetScheme (line 1957) | func (c *Client) SetScheme(scheme string) *Client { method SetCloseConnection (line 1970) | func (c *Client) SetCloseConnection(close bool) *Client { method SetResponseDoNotParse (line 1985) | func (c *Client) SetResponseDoNotParse(notParse bool) *Client { method PathParams (line 1995) | func (c *Client) PathParams() map[string]string { method SetPathParam (line 2015) | func (c *Client) SetPathParam(param, value string) *Client { method SetPathParamAny (line 2039) | func (c *Client) SetPathParamAny(param string, value any) *Client { method SetPathParams (line 2065) | func (c *Client) SetPathParams(params map[string]string) *Client { method SetPathRawParam (line 2086) | func (c *Client) SetPathRawParam(param, value string) *Client { method SetPathRawParamAny (line 2110) | func (c *Client) SetPathRawParamAny(param string, value any) *Client { method SetPathRawParams (line 2136) | func (c *Client) SetPathRawParams(params map[string]string) *Client { method SetJSONEscapeHTML (line 2149) | func (c *Client) SetJSONEscapeHTML(b bool) *Client { method ResponseBodyLimit (line 2158) | func (c *Client) ResponseBodyLimit() int64 { method SetResponseBodyLimit (line 2175) | func (c *Client) SetResponseBodyLimit(v int64) *Client { method IsTrace (line 2183) | func (c *Client) IsTrace() bool { method SetTrace (line 2199) | func (c *Client) SetTrace(t bool) *Client { method SetCurlCmdGenerate (line 2220) | func (c *Client) SetCurlCmdGenerate(b bool) *Client { method SetCurlCmdDebugLog (line 2230) | func (c *Client) SetCurlCmdDebugLog(b bool) *Client { method SetQueryParamsUnescape (line 2243) | func (c *Client) SetQueryParamsUnescape(unescape bool) *Client { method ResponseBodyUnlimitedReads (line 2251) | func (c *Client) ResponseBodyUnlimitedReads() bool { method SetResponseBodyUnlimitedReads (line 2267) | func (c *Client) SetResponseBodyUnlimitedReads(b bool) *Client { method IsProxySet (line 2276) | func (c *Client) IsProxySet() bool { method Client (line 2281) | func (c *Client) Client() *http.Client { method Clone (line 2295) | func (c *Client) Clone(ctx context.Context) *Client { method Close (line 2332) | func (c *Client) Close() error { method executeRequestMiddlewares (line 2344) | func (c *Client) executeRequestMiddlewares(req *Request) (err error) { method execute (line 2355) | func (c *Client) execute(req *Request) (*Response, error) { method tlsConfig (line 2428) | func (c *Client) tlsConfig() (*tls.Config, error) { method outputLogTo (line 2448) | func (c *Client) outputLogTo(w io.Writer) *Client { method onErrorHooks (line 2471) | func (c *Client) onErrorHooks(req *Request, res *Response, err error) { method onPanicHooks (line 2489) | func (c *Client) onPanicHooks(req *Request, err error) { method onInvalidHooks (line 2498) | func (c *Client) onInvalidHooks(req *Request, err error) { method onCloseHooks (line 2507) | func (c *Client) onCloseHooks() { method debugf (line 2515) | func (c *Client) debugf(format string, v ...any) { type CertWatcherOptions (line 234) | type CertWatcherOptions struct type ResponseError (line 2455) | type ResponseError struct method Error (line 2460) | func (e *ResponseError) Error() string { method Unwrap (line 2464) | func (e *ResponseError) Unwrap() error { FILE: client_test.go function TestClientBasicAuth (line 33) | func TestClientBasicAuth(t *testing.T) { function TestClientAuthToken (line 53) | func TestClientAuthToken(t *testing.T) { function TestClientAuthScheme (line 68) | func TestClientAuthScheme(t *testing.T) { function TestClientResponseMiddleware (line 93) | func TestClientResponseMiddleware(t *testing.T) { function TestClientRedirectPolicy (line 114) | func TestClientRedirectPolicy(t *testing.T) { function TestClientTimeout (line 141) | func TestClientTimeout(t *testing.T) { function TestClientTimeoutWithinThreshold (line 150) | func TestClientTimeoutWithinThreshold(t *testing.T) { function TestClientTimeoutInternalError (line 169) | func TestClientTimeoutInternalError(t *testing.T) { function TestClientProxy (line 174) | func TestClientProxy(t *testing.T) { function TestClientSetCertificates (line 195) | func TestClientSetCertificates(t *testing.T) { function TestClientSetRootCertificate (line 226) | func TestClientSetRootCertificate(t *testing.T) { type CustomRoundTripper1 (line 261) | type CustomRoundTripper1 struct method RoundTrip (line 264) | func (rt *CustomRoundTripper1) RoundTrip(_ *http.Request) (*http.Respo... function TestClientCACertificateFromStringErrorTls (line 268) | func TestClientCACertificateFromStringErrorTls(t *testing.T) { type CustomRoundTripper2 (line 305) | type CustomRoundTripper2 struct method RoundTrip (line 313) | func (rt *CustomRoundTripper2) RoundTrip(_ *http.Request) (*http.Respo... method TLSClientConfig (line 320) | func (rt *CustomRoundTripper2) TLSClientConfig() *tls.Config { method SetTLSClientConfig (line 323) | func (rt *CustomRoundTripper2) SetTLSClientConfig(tlsConfig *tls.Confi... function TestClientTLSConfigerInterface (line 331) | func TestClientTLSConfigerInterface(t *testing.T) { function TestClientSetClientRootCertificate (line 376) | func TestClientSetClientRootCertificate(t *testing.T) { function TestClientSetClientRootCertificateNotExists (line 386) | func TestClientSetClientRootCertificateNotExists(t *testing.T) { function TestClientSetClientRootCertificateWatcher (line 396) | func TestClientSetClientRootCertificateWatcher(t *testing.T) { function TestClientSetClientRootCertificateFromString (line 421) | func TestClientSetClientRootCertificateFromString(t *testing.T) { function TestClientRequestMiddlewareModification (line 434) | func TestClientRequestMiddlewareModification(t *testing.T) { function TestClientSetHeaderVerbatim (line 454) | func TestClientSetHeaderVerbatim(t *testing.T) { function TestClientSetHeaderAny (line 468) | func TestClientSetHeaderAny(t *testing.T) { function TestClientSetHeaderVerbatimAny (line 477) | func TestClientSetHeaderVerbatimAny(t *testing.T) { function TestClientSetQueryParamAny (line 486) | func TestClientSetQueryParamAny(t *testing.T) { function TestClientSetPathParamAny (line 495) | func TestClientSetPathParamAny(t *testing.T) { function TestClientSetRawPathParamAny (line 504) | func TestClientSetRawPathParamAny(t *testing.T) { function TestClientSetTransport (line 513) | func TestClientSetTransport(t *testing.T) { function TestClientSetScheme (line 531) | func TestClientSetScheme(t *testing.T) { function TestClientSetCookieJar (line 539) | func TestClientSetCookieJar(t *testing.T) { function TestClientSettingsCoverage (line 552) | func TestClientSettingsCoverage(t *testing.T) { function TestContentLengthWhenBodyIsNil (line 616) | func TestContentLengthWhenBodyIsNil(t *testing.T) { function TestClientPreRequestMiddlewares (line 633) | func TestClientPreRequestMiddlewares(t *testing.T) { function TestClientPreRequestMiddlewareError (line 679) | func TestClientPreRequestMiddlewareError(t *testing.T) { function TestClientAllowMethodGetPayload (line 698) | func TestClientAllowMethodGetPayload(t *testing.T) { function TestClientAllowMethodDeletePayload (line 743) | func TestClientAllowMethodDeletePayload(t *testing.T) { function TestClientRoundTripper (line 791) | func TestClientRoundTripper(t *testing.T) { function TestClientNewRequest (line 804) | func TestClientNewRequest(t *testing.T) { function TestClientDebugBodySizeLimit (line 810) | func TestClientDebugBodySizeLimit(t *testing.T) { function TestGzipCompress (line 844) | func TestGzipCompress(t *testing.T) { function TestDeflateCompress (line 866) | func TestDeflateCompress(t *testing.T) { type lzwReader (line 888) | type lzwReader struct method Read (line 893) | func (l *lzwReader) Read(p []byte) (n int, err error) { method Close (line 897) | func (l *lzwReader) Close() error { function TestLzwCompress (line 903) | func TestLzwCompress(t *testing.T) { function TestClientLogCallbacks (line 941) | func TestClientLogCallbacks(t *testing.T) { function TestDebugLogSimultaneously (line 986) | func TestDebugLogSimultaneously(t *testing.T) { function TestCustomTransportSettings (line 1008) | func TestCustomTransportSettings(t *testing.T) { function TestDefaultDialerTransportSettings (line 1034) | func TestDefaultDialerTransportSettings(t *testing.T) { function TestNewWithDialer (line 1057) | func TestNewWithDialer(t *testing.T) { function TestNewWithLocalAddr (line 1073) | func TestNewWithLocalAddr(t *testing.T) { function TestClientOnResponseFailure (line 1086) | func TestClientOnResponseFailure(t *testing.T) { function TestResponseError (line 1249) | func TestResponseError(t *testing.T) { function TestHostURLForGH318AndGH407 (line 1259) | func TestHostURLForGH318AndGH407(t *testing.T) { function TestPostRedirectWithBody (line 1302) | func TestPostRedirectWithBody(t *testing.T) { function TestUnixSocket (line 1333) | func TestUnixSocket(t *testing.T) { function TestClientClone (line 1361) | func TestClientClone(t *testing.T) { function TestResponseBodyLimit (line 1409) | func TestResponseBodyLimit(t *testing.T) { function TestClient_executeReadAllError (line 1469) | func TestClient_executeReadAllError(t *testing.T) { function TestClientDebugf (line 1492) | func TestClientDebugf(t *testing.T) { function TestClientOnClose (line 1508) | func TestClientOnClose(t *testing.T) { function TestClientOnCloseMultipleHooks (line 1521) | func TestClientOnCloseMultipleHooks(t *testing.T) { function TestClientHedgingMutualExclusionWithRetry (line 1540) | func TestClientHedgingMutualExclusionWithRetry(t *testing.T) { FILE: context_test.go function TestClientSetContext (line 18) | func TestClientSetContext(t *testing.T) { function TestRequestSetContext (line 38) | func TestRequestSetContext(t *testing.T) { function TestSetContextWithError (line 54) | func TestSetContextWithError(t *testing.T) { function TestSetContextCancel (line 69) | func TestSetContextCancel(t *testing.T) { function TestSetContextCancelRetry (line 106) | func TestSetContextCancelRetry(t *testing.T) { function TestSetContextCancelWithError (line 153) | func TestSetContextCancelWithError(t *testing.T) { function TestClientRetryWithSetContext (line 192) | func TestClientRetryWithSetContext(t *testing.T) { function TestRequestContext (line 217) | func TestRequestContext(t *testing.T) { function errIsContextCanceled (line 226) | func errIsContextCanceled(err error) bool { FILE: curl.go function buildCurlCmd (line 18) | func buildCurlCmd(req *Request) string { function dumpCurlCookies (line 54) | func dumpCurlCookies(cookies []*http.Cookie) string { function dumpCurlHeaders (line 64) | func dumpCurlHeaders(req *http.Request) *[][2]string { function cmdQuote (line 91) | func cmdQuote(s string) string { FILE: curl_test.go function TestCurlGenerateUnexecutedRequest (line 18) | func TestCurlGenerateUnexecutedRequest(t *testing.T) { function TestCurlGenerateExecutedRequest (line 45) | func TestCurlGenerateExecutedRequest(t *testing.T) { function TestCurlCmdDebugMode (line 82) | func TestCurlCmdDebugMode(t *testing.T) { function TestCurl_buildCurlCmd (line 120) | func TestCurl_buildCurlCmd(t *testing.T) { function TestCurlRequestGetBodyError (line 219) | func TestCurlRequestGetBodyError(t *testing.T) { function TestCurlRequestMiddlewaresError (line 257) | func TestCurlRequestMiddlewaresError(t *testing.T) { function TestCurlMiscTestCoverage (line 271) | func TestCurlMiscTestCoverage(t *testing.T) { FILE: debug.go type DebugLogCallbackFunc (line 17) | type DebugLogCallbackFunc type DebugLogFormatterFunc (line 21) | type DebugLogFormatterFunc type DebugLog (line 25) | type DebugLog struct type DebugLogRequest (line 32) | type DebugLogRequest struct type DebugLogResponse (line 45) | type DebugLogResponse struct function DebugLogFormatter (line 61) | func DebugLogFormatter(dl *DebugLog) string { function DebugLogJSONFormatter (line 97) | func DebugLogJSONFormatter(dl *DebugLog) string { function debugLogger (line 101) | func debugLogger(c *Client, res *Response) { constant debugRequestLogKey (line 140) | debugRequestLogKey = "__restyDebugRequestLog" function prepareRequestDebugInfo (line 142) | func prepareRequestDebugInfo(c *Client, r *Request) { FILE: digest.go constant qopAuth (line 47) | qopAuth = "auth" constant qopAuthInt (line 48) | qopAuthInt = "auth-int" type digestTransport (line 51) | type digestTransport struct method RoundTrip (line 56) | func (dt *digestTransport) RoundTrip(req *http.Request) (*http.Respons... method cloneReq (line 97) | func (dt *digestTransport) cloneReq(r *http.Request, first bool) *http... method parseChallenge (line 107) | func (dt *digestTransport) parseChallenge(input string) (*digestChalle... method createCredentials (line 161) | func (dt *digestTransport) createCredentials(cha *digestChallenge, req... method prepareBody (line 197) | func (dt *digestTransport) prepareBody(req *http.Request) error { type digestChallenge (line 222) | type digestChallenge struct method isQopSupported (line 234) | func (dc *digestChallenge) isQopSupported(qop string) bool { method setValue (line 243) | func (dc *digestChallenge) setValue(k, v string) error { type digestCredentials (line 279) | type digestCredentials struct method parseQop (line 297) | func (dc *digestCredentials) parseQop(cha *digestChallenge) error { method h (line 315) | func (dc *digestCredentials) h(data string) string { method digest (line 321) | func (dc *digestCredentials) digest(cha *digestChallenge) (string, err... method ha1 (line 353) | func (dc *digestCredentials) ha1() string { method ha2 (line 362) | func (dc *digestCredentials) ha2() string { method String (line 369) | func (dc *digestCredentials) String() string { function newHashFunc (line 396) | func newHashFunc(algorithm string) hash.Hash { FILE: digest_test.go type digestServerConfig (line 16) | type digestServerConfig struct function defaultDigestServerConf (line 20) | func defaultDigestServerConf() *digestServerConfig { function TestClientDigestAuth (line 35) | func TestClientDigestAuth(t *testing.T) { function TestClientDigestAuthSession (line 51) | func TestClientDigestAuthSession(t *testing.T) { function TestClientDigestAuthErrors (line 69) | func TestClientDigestAuthErrors(t *testing.T) { function TestClientDigestAuthWithBody (line 101) | func TestClientDigestAuthWithBody(t *testing.T) { function TestClientDigestAuthWithBodyQopAuthInt (line 122) | func TestClientDigestAuthWithBodyQopAuthInt(t *testing.T) { function TestClientDigestAuthWithBodyQopAuthIntIoCopyError (line 140) | func TestClientDigestAuthWithBodyQopAuthIntIoCopyError(t *testing.T) { function TestClientDigestAuthRoundTripError (line 167) | func TestClientDigestAuthRoundTripError(t *testing.T) { function TestClientDigestAuthWithBodyQopAuthIntGetBodyNil (line 185) | func TestClientDigestAuthWithBodyQopAuthIntGetBodyNil(t *testing.T) { function TestClientDigestAuthWithGetBodyError (line 210) | func TestClientDigestAuthWithGetBodyError(t *testing.T) { function TestClientDigestAuthWithGetBodyNilReadError (line 239) | func TestClientDigestAuthWithGetBodyNilReadError(t *testing.T) { function TestClientDigestAuthWithNoBodyQopAuthInt (line 266) | func TestClientDigestAuthWithNoBodyQopAuthInt(t *testing.T) { function TestClientDigestAuthNoQop (line 280) | func TestClientDigestAuthNoQop(t *testing.T) { function TestClientDigestAuthWithIncorrectNcValue (line 299) | func TestClientDigestAuthWithIncorrectNcValue(t *testing.T) { FILE: hedging.go function NewHedging (line 38) | func NewHedging() *Hedging { type Hedging (line 69) | type Hedging struct method Delay (line 80) | func (h *Hedging) Delay() time.Duration { method SetDelay (line 87) | func (h *Hedging) SetDelay(delay time.Duration) *Hedging { method MaxRequest (line 95) | func (h *Hedging) MaxRequest() int { method SetMaxRequest (line 102) | func (h *Hedging) SetMaxRequest(count int) *Hedging { method MaxRequestPerSecond (line 110) | func (h *Hedging) MaxRequestPerSecond() float64 { method SetMaxRequestPerSecond (line 117) | func (h *Hedging) SetMaxRequestPerSecond(count float64) *Hedging { method IsNonReadOnlyAllowed (line 127) | func (h *Hedging) IsNonReadOnlyAllowed() bool { method SetNonReadOnlyAllowed (line 138) | func (h *Hedging) SetNonReadOnlyAllowed(allow bool) *Hedging { method calculateRateDelay (line 150) | func (h *Hedging) calculateRateDelay() { method RoundTrip (line 159) | func (ht *Hedging) RoundTrip(req *http.Request) (*http.Response, error) { function isReadOnlyMethod (line 256) | func isReadOnlyMethod(method string) bool { FILE: hedging_test.go function createHedgingTestServer (line 19) | func createHedgingTestServer(t *testing.T, attemptCount *int32) *httptes... function TestHedgingBasic (line 29) | func TestHedgingBasic(t *testing.T) { function TestHedgingSecondWins (line 48) | func TestHedgingSecondWins(t *testing.T) { function TestHedgingTimeout (line 80) | func TestHedgingTimeout(t *testing.T) { function TestHedgingReadOnlyMethodsOnly (line 126) | func TestHedgingReadOnlyMethodsOnly(t *testing.T) { function TestHedgingRateLimit (line 172) | func TestHedgingRateLimit(t *testing.T) { function TestHedgingWithRetryFallback (line 196) | func TestHedgingWithRetryFallback(t *testing.T) { function TestHedgingDisable (line 223) | func TestHedgingDisable(t *testing.T) { function TestHedgingContextCancellation (line 250) | func TestHedgingContextCancellation(t *testing.T) { function TestHedgingConfiguration (line 283) | func TestHedgingConfiguration(t *testing.T) { function TestHedgingConfigurationViaClient (line 303) | func TestHedgingConfigurationViaClient(t *testing.T) { function TestHedgingWithCustomTransport (line 331) | func TestHedgingWithCustomTransport(t *testing.T) { function TestHedgingSingleRequest (line 356) | func TestHedgingSingleRequest(t *testing.T) { function TestHedgingAllowNonReadOnly (line 374) | func TestHedgingAllowNonReadOnly(t *testing.T) { function TestHedgingWithNilTransport (line 408) | func TestHedgingWithNilTransport(t *testing.T) { function TestHedgingEnableMultipleTimes (line 428) | func TestHedgingEnableMultipleTimes(t *testing.T) { function TestHedgingWrapWithDisabledHedging (line 462) | func TestHedgingWrapWithDisabledHedging(t *testing.T) { function TestHedgingRateDelayBetweenRequests (line 481) | func TestHedgingRateDelayBetweenRequests(t *testing.T) { function TestHedgingNoDoubleWrap (line 535) | func TestHedgingNoDoubleWrap(t *testing.T) { function TestHedgingRoundTripDeadlineExpired (line 567) | func TestHedgingRoundTripDeadlineExpired(t *testing.T) { FILE: load_balancer.go type LoadBalancer (line 24) | type LoadBalancer interface type RequestFeedback (line 32) | type RequestFeedback struct function NewRoundRobin (line 40) | func NewRoundRobin(baseURLs ...string) (*RoundRobin, error) { type RoundRobin (line 56) | type RoundRobin struct method NextWithContext (line 64) | func (rr *RoundRobin) NextWithContext(ctx context.Context) (string, er... method Feedback (line 84) | func (rr *RoundRobin) Feedback(_ *RequestFeedback) {} method Close (line 87) | func (rr *RoundRobin) Close() error { return nil } method Refresh (line 90) | func (rr *RoundRobin) Refresh(baseURLs ...string) error { type Host (line 109) | type Host struct method addWeight (line 128) | func (h *Host) addWeight() { method resetWeight (line 132) | func (h *Host) resetWeight(totalWeight int) { type HostState (line 136) | type HostState constant HostStateInActive (line 140) | HostStateInActive HostState = iota constant HostStateActive (line 141) | HostStateActive type HostStateChangeFunc (line 145) | type HostStateChangeFunc function NewWeightedRoundRobin (line 152) | func NewWeightedRoundRobin(recovery time.Duration, hosts ...*Host) (*Wei... type WeightedRoundRobin (line 174) | type WeightedRoundRobin struct method NextWithContext (line 189) | func (wrr *WeightedRoundRobin) NextWithContext(ctx context.Context) (s... method Feedback (line 224) | func (wrr *WeightedRoundRobin) Feedback(f *RequestFeedback) { method Close (line 250) | func (wrr *WeightedRoundRobin) Close() error { method Refresh (line 258) | func (wrr *WeightedRoundRobin) Refresh(hosts ...*Host) error { method SetOnStateChange (line 289) | func (wrr *WeightedRoundRobin) SetOnStateChange(fn HostStateChangeFunc) { method SetRecoveryDuration (line 296) | func (wrr *WeightedRoundRobin) SetRecoveryDuration(d time.Duration) { method ticker (line 303) | func (wrr *WeightedRoundRobin) ticker() { function NewSRVWeightedRoundRobin (line 325) | func NewSRVWeightedRoundRobin(service, proto, domainName, httpScheme str... type SRVWeightedRoundRobin (line 358) | type SRVWeightedRoundRobin struct method NextWithContext (line 372) | func (swrr *SRVWeightedRoundRobin) NextWithContext(ctx context.Context... method Feedback (line 378) | func (swrr *SRVWeightedRoundRobin) Feedback(f *RequestFeedback) { method Close (line 384) | func (swrr *SRVWeightedRoundRobin) Close() error { method Refresh (line 393) | func (swrr *SRVWeightedRoundRobin) Refresh() error { method SetRefreshDuration (line 412) | func (swrr *SRVWeightedRoundRobin) SetRefreshDuration(d time.Duration) { method SetOnStateChange (line 419) | func (swrr *SRVWeightedRoundRobin) SetOnStateChange(fn HostStateChange... method SetRecoveryDuration (line 424) | func (swrr *SRVWeightedRoundRobin) SetRecoveryDuration(d time.Duration) { method ticker (line 428) | func (swrr *SRVWeightedRoundRobin) ticker() { function extractBaseURL (line 434) | func extractBaseURL(u string) (string, error) { FILE: load_balancer_test.go function TestRoundRobin (line 19) | func TestRoundRobin(t *testing.T) { function TestRoundRobinNoBaseURLs (line 120) | func TestRoundRobinNoBaseURLs(t *testing.T) { function TestWeightedRoundRobin (line 139) | func TestWeightedRoundRobin(t *testing.T) { function TestSRVWeightedRoundRobin (line 281) | func TestSRVWeightedRoundRobin(t *testing.T) { function TestLoadBalancerRequest (line 471) | func TestLoadBalancerRequest(t *testing.T) { function TestLoadBalancerRequestFlowError (line 500) | func TestLoadBalancerRequestFlowError(t *testing.T) { function Test_extractBaseURL (line 533) | func Test_extractBaseURL(t *testing.T) { function TestLoadBalancerRequestFailures (line 572) | func TestLoadBalancerRequestFailures(t *testing.T) { type mockTimeoutErr (line 603) | type mockTimeoutErr struct method Error (line 605) | func (e *mockTimeoutErr) Error() string { return "i/o timeout" } method Timeout (line 606) | func (e *mockTimeoutErr) Timeout() bool { return true } function TestLoadBalancerCoverage (line 608) | func TestLoadBalancerCoverage(t *testing.T) { FILE: middleware.go function MiddlewareRequestCreate (line 37) | func MiddlewareRequestCreate(c *Client, r *Request) (err error) { function parseRequestURL (line 60) | func parseRequestURL(c *Client, r *Request) error { function parseRequestHeader (line 185) | func parseRequestHeader(c *Client, r *Request) error { function parseRequestBody (line 204) | func parseRequestBody(c *Client, r *Request) error { function createRawRequest (line 230) | func createRawRequest(c *Client, r *Request) (err error) { function addCredentials (line 277) | func addCredentials(c *Client, r *Request) error { function handleMultipartFormData (line 326) | func handleMultipartFormData(r *Request) error { function handleMultipart (line 341) | func handleMultipart(c *Client, r *Request) error { function handleFormData (line 436) | func handleFormData(c *Client, r *Request) { function handleRequestBody (line 450) | func handleRequestBody(c *Client, r *Request) error { function MiddlewareResponseAutoParse (line 526) | func MiddlewareResponseAutoParse(c *Client, res *Response) (err error) { function MiddlewareResponseSaveToFile (line 584) | func MiddlewareResponseSaveToFile(c *Client, res *Response) error { FILE: middleware_test.go function Test_parseRequestURL (line 26) | func Test_parseRequestURL(t *testing.T) { function Test_parseRequestHeader (line 356) | func Test_parseRequestHeader(t *testing.T) { function TestParseRequestBody (line 454) | func TestParseRequestBody(t *testing.T) { function TestMiddlewareSaveToFileErrorCases (line 864) | func TestMiddlewareSaveToFileErrorCases(t *testing.T) { function TestMiddlewareSaveToFileCopyError (line 894) | func TestMiddlewareSaveToFileCopyError(t *testing.T) { function TestRequestURL_GH797 (line 913) | func TestRequestURL_GH797(t *testing.T) { function TestMiddleware_multipartWriteFormData (line 933) | func TestMiddleware_multipartWriteFormData(t *testing.T) { function TestMiddleware_multipartWriteField (line 963) | func TestMiddleware_multipartWriteField(t *testing.T) { function TestMiddleware_multipartCreatePart (line 994) | func TestMiddleware_multipartCreatePart(t *testing.T) { function TestMiddleware_multipartCreatePart_WriteError (line 1028) | func TestMiddleware_multipartCreatePart_WriteError(t *testing.T) { function TestMiddlewareCoverage (line 1062) | func TestMiddlewareCoverage(t *testing.T) { FILE: multipart.go function escapeQuotes (line 20) | func escapeQuotes(s string) string { type MultipartField (line 26) | type MultipartField struct method Clone (line 69) | func (mf *MultipartField) Clone() *MultipartField { method resetReader (line 75) | func (mf *MultipartField) resetReader() error { method isValues (line 83) | func (mf *MultipartField) isValues() bool { method close (line 87) | func (mf *MultipartField) close() { method createHeader (line 91) | func (mf *MultipartField) createHeader() textproto.MIMEHeader { method openFile (line 107) | func (mf *MultipartField) openFile() error { method detectContentType (line 130) | func (mf *MultipartField) detectContentType() error { method wrapProgressCallbackIfPresent (line 145) | func (mf *MultipartField) wrapProgressCallbackIfPresent(pw io.Writer) ... type MultipartFieldCallbackFunc (line 165) | type MultipartFieldCallbackFunc type MultipartFieldProgress (line 169) | type MultipartFieldProgress struct method String (line 177) | func (mfp MultipartFieldProgress) String() string { type multipartProgressWriter (line 182) | type multipartProgressWriter struct method Write (line 188) | func (mpw *multipartProgressWriter) Write(p []byte) (n int, err error) { FILE: multipart_test.go function TestMultipartFormDataAndUpload (line 25) | func TestMultipartFormDataAndUpload(t *testing.T) { function TestMultipartFormDataAndUploadMethodPatch (line 59) | func TestMultipartFormDataAndUploadMethodPatch(t *testing.T) { function TestMultipartUploadError (line 77) | func TestMultipartUploadError(t *testing.T) { function TestMultipartUploadFiles (line 94) | func TestMultipartUploadFiles(t *testing.T) { function TestMultipartFilesAndFormDataEmptyGH1046 (line 124) | func TestMultipartFilesAndFormDataEmptyGH1046(t *testing.T) { function TestMultipartIoReaderFiles (line 148) | func TestMultipartIoReaderFiles(t *testing.T) { function TestMultipartUploadFileNotOnGetOrDelete (line 183) | func TestMultipartUploadFileNotOnGetOrDelete(t *testing.T) { function TestMultipartFormData (line 224) | func TestMultipartFormData(t *testing.T) { function TestMultipartFormDataFields (line 237) | func TestMultipartFormDataFields(t *testing.T) { function TestMultipartField (line 270) | func TestMultipartField(t *testing.T) { function TestMultipartFields (line 296) | func TestMultipartFields(t *testing.T) { function TestMultipartCustomBoundary (line 341) | func TestMultipartCustomBoundary(t *testing.T) { function TestMultipartLargeFile (line 368) | func TestMultipartLargeFile(t *testing.T) { function TestMultipartFieldProgressCallback (line 418) | func TestMultipartFieldProgressCallback(t *testing.T) { function TestMultipartOrderedFormData (line 489) | func TestMultipartOrderedFormData(t *testing.T) { type errorReader (line 551) | type errorReader struct method Read (line 553) | func (errorReader) Read(p []byte) (n int, err error) { function TestMultipartReaderErrors (line 557) | func TestMultipartReaderErrors(t *testing.T) { type mpWriterError (line 602) | type mpWriterError struct method Write (line 604) | func (mwe *mpWriterError) Write(p []byte) (int, error) { function TestMultipartRequest_Errors (line 608) | func TestMultipartRequest_Errors(t *testing.T) { function TestMultipartUploadFailAutoErrorParse (line 624) | func TestMultipartUploadFailAutoErrorParse(t *testing.T) { function TestMultipartConcurrentRequests (line 676) | func TestMultipartConcurrentRequests(t *testing.T) { type returnValueTestWriter (line 707) | type returnValueTestWriter struct method Write (line 710) | func (z *returnValueTestWriter) Write(p []byte) (n int, err error) { function TestMultipartCornerCoverage (line 714) | func TestMultipartCornerCoverage(t *testing.T) { FILE: redirect.go type RedirectPolicy (line 22) | type RedirectPolicy interface type RedirectPolicyFunc (line 29) | type RedirectPolicyFunc method Apply (line 39) | func (f RedirectPolicyFunc) Apply(req *http.Request, via []*http.Reque... type RedirectInfo (line 32) | type RedirectInfo struct function RedirectNoPolicy (line 46) | func RedirectNoPolicy() RedirectPolicy { function RedirectFlexiblePolicy (line 55) | func RedirectFlexiblePolicy(noOfRedirect int) RedirectPolicy { function RedirectDomainCheckPolicy (line 69) | func RedirectDomainCheckPolicy(hostnames ...string) RedirectPolicy { function getHostname (line 84) | func getHostname(host string) (hostname string) { function checkHostAndAddHeaders (line 97) | func checkHostAndAddHeaders(cur *http.Request, pre *http.Request) { FILE: request.go type Request (line 35) | type Request struct method SetCorrelationID (line 115) | func (r *Request) SetCorrelationID(id string) *Request { method SetMethod (line 121) | func (r *Request) SetMethod(m string) *Request { method SetURL (line 127) | func (r *Request) SetURL(url string) *Request { method Context (line 137) | func (r *Request) Context() context.Context { method SetContext (line 154) | func (r *Request) SetContext(ctx context.Context) *Request { method WithContext (line 169) | func (r *Request) WithContext(ctx context.Context) *Request { method SetContentType (line 182) | func (r *Request) SetContentType(ct string) *Request { method SetHeader (line 196) | func (r *Request) SetHeader(header, value string) *Request { method SetHeaderAny (line 213) | func (r *Request) SetHeaderAny(header string, value any) *Request { method SetHeaders (line 230) | func (r *Request) SetHeaders(headers map[string]string) *Request { method SetHeaderMultiValues (line 247) | func (r *Request) SetHeaderMultiValues(headers map[string][]string) *R... method SetHeaderVerbatim (line 265) | func (r *Request) SetHeaderVerbatim(header, value string) *Request { method SetHeaderVerbatimAny (line 282) | func (r *Request) SetHeaderVerbatimAny(header string, value any) *Requ... method SetQueryParam (line 298) | func (r *Request) SetQueryParam(param, value string) *Request { method SetQueryParamAny (line 318) | func (r *Request) SetQueryParamAny(param string, value any) *Request { method SetQueryParams (line 336) | func (r *Request) SetQueryParams(params map[string]string) *Request { method SetQueryParamsFromValues (line 355) | func (r *Request) SetQueryParamsFromValues(params url.Values) *Request { method SetQueryString (line 370) | func (r *Request) SetQueryString(query string) *Request { method SetFormData (line 396) | func (r *Request) SetFormData(data map[string]string) *Request { method SetFormDataFromValues (line 412) | func (r *Request) SetFormDataFromValues(data url.Values) *Request { method SetBody (line 468) | func (r *Request) SetBody(body any) *Request { method SetResult (line 497) | func (r *Request) SetResult(v any) *Request { method SetResultError (line 518) | func (r *Request) SetResultError(err any) *Request { method SetFile (line 530) | func (r *Request) SetFile(fieldName, filePath string) *Request { method SetFiles (line 551) | func (r *Request) SetFiles(files map[string]string) *Request { method SetFileReader (line 571) | func (r *Request) SetFileReader(fieldName, fileName string, reader io.... method SetMultipartFormData (line 578) | func (r *Request) SetMultipartFormData(data map[string]string) *Request { method SetMultipartOrderedFormData (line 588) | func (r *Request) SetMultipartOrderedFormData(name string, values []st... method SetMultipartField (line 601) | func (r *Request) SetMultipartField(fieldName, fileName, contentType s... method SetMultipartFields (line 654) | func (r *Request) SetMultipartFields(fields ...*MultipartField) *Reque... method SetMultipartBoundary (line 662) | func (r *Request) SetMultipartBoundary(boundary string) *Request { method SetContentLength (line 671) | func (r *Request) SetContentLength(v int64) *Request { method SetBasicAuth (line 688) | func (r *Request) SetBasicAuth(username, password string) *Request { method SetAuthToken (line 702) | func (r *Request) SetAuthToken(authToken string) *Request { method SetAuthScheme (line 726) | func (r *Request) SetAuthScheme(scheme string) *Request { method SetHeaderAuthorizationKey (line 736) | func (r *Request) SetHeaderAuthorizationKey(k string) *Request { method SetResponseSaveFileName (line 756) | func (r *Request) SetResponseSaveFileName(file string) *Request { method SetResponseSaveToFile (line 773) | func (r *Request) SetResponseSaveToFile(save bool) *Request { method SetCloseConnection (line 782) | func (r *Request) SetCloseConnection(close bool) *Request { method SetResponseDoNotParse (line 795) | func (r *Request) SetResponseDoNotParse(notParse bool) *Request { method SetResponseBodyLimit (line 811) | func (r *Request) SetResponseBodyLimit(v int64) *Request { method SetResponseBodyUnlimitedReads (line 826) | func (r *Request) SetResponseBodyUnlimitedReads(b bool) *Request { method SetPathParam (line 850) | func (r *Request) SetPathParam(param, value string) *Request { method SetPathParamAny (line 873) | func (r *Request) SetPathParamAny(param string, value any) *Request { method SetPathParams (line 896) | func (r *Request) SetPathParams(params map[string]string) *Request { method SetPathRawParam (line 922) | func (r *Request) SetPathRawParam(param, value string) *Request { method SetPathRawParamAny (line 945) | func (r *Request) SetPathRawParamAny(param string, value any) *Request { method SetPathRawParams (line 968) | func (r *Request) SetPathRawParams(params map[string]string) *Request { method SetResponseExpectContentType (line 977) | func (r *Request) SetResponseExpectContentType(contentType string) *Re... method SetResponseForceContentType (line 988) | func (r *Request) SetResponseForceContentType(contentType string) *Req... method SetJSONEscapeHTML (line 999) | func (r *Request) SetJSONEscapeHTML(b bool) *Request { method SetCookie (line 1012) | func (r *Request) SetCookie(hc *http.Cookie) *Request { method SetCookies (line 1034) | func (r *Request) SetCookies(rs []*http.Cookie) *Request { method SetTimeout (line 1046) | func (r *Request) SetTimeout(timeout time.Duration) *Request { method SetLogger (line 1057) | func (r *Request) SetLogger(l Logger) *Request { method SetDebug (line 1072) | func (r *Request) SetDebug(d bool) *Request { method AddRetryConditions (line 1089) | func (r *Request) AddRetryConditions(conditions ...RetryConditionFunc)... method SetRetryConditions (line 1101) | func (r *Request) SetRetryConditions(conditions ...RetryConditionFunc)... method AddRetryHooks (line 1114) | func (r *Request) AddRetryHooks(hooks ...RetryHookFunc) *Request { method SetRetryHooks (line 1124) | func (r *Request) SetRetryHooks(hooks ...RetryHookFunc) *Request { method SetRetryCount (line 1142) | func (r *Request) SetRetryCount(count int) *Request { method SetRetryWaitTime (line 1150) | func (r *Request) SetRetryWaitTime(waitTime time.Duration) *Request { method SetRetryMaxWaitTime (line 1158) | func (r *Request) SetRetryMaxWaitTime(maxWaitTime time.Duration) *Requ... method SetRetryDelayStrategy (line 1168) | func (r *Request) SetRetryDelayStrategy(rs RetryDelayStrategyFunc) *Re... method SetRetryDefaultConditions (line 1177) | func (r *Request) SetRetryDefaultConditions(b bool) *Request { method SetRetryAllowNonIdempotent (line 1190) | func (r *Request) SetRetryAllowNonIdempotent(b bool) *Request { method SetTrace (line 1208) | func (r *Request) SetTrace(t bool) *Request { method SetCurlCmdGenerate (line 1226) | func (r *Request) SetCurlCmdGenerate(b bool) *Request { method SetCurlCmdDebugLog (line 1235) | func (r *Request) SetCurlCmdDebugLog(b bool) *Request { method CurlCmd (line 1241) | func (r *Request) CurlCmd() string { method generateCurlCommand (line 1245) | func (r *Request) generateCurlCommand() string { method SetQueryParamsUnescape (line 1268) | func (r *Request) SetQueryParamsUnescape(unescape bool) *Request { method SetMethodGetAllowPayload (line 1279) | func (r *Request) SetMethodGetAllowPayload(allow bool) *Request { method SetMethodDeleteAllowPayload (line 1292) | func (r *Request) SetMethodDeleteAllowPayload(allow bool) *Request { method TraceInfo (line 1300) | func (r *Request) TraceInfo() TraceInfo { method Get (line 1373) | func (r *Request) Get(url string) (*Response, error) { method Head (line 1380) | func (r *Request) Head(url string) (*Response, error) { method Post (line 1387) | func (r *Request) Post(url string) (*Response, error) { method Put (line 1394) | func (r *Request) Put(url string) (*Response, error) { method Patch (line 1401) | func (r *Request) Patch(url string) (*Response, error) { method Delete (line 1408) | func (r *Request) Delete(url string) (*Response, error) { method Options (line 1415) | func (r *Request) Options(url string) (*Response, error) { method Trace (line 1422) | func (r *Request) Trace(url string) (*Response, error) { method Send (line 1433) | func (r *Request) Send() (*Response, error) { method Execute (line 1441) | func (r *Request) Execute(method, url string) (res *Response, err erro... method Clone (line 1596) | func (r *Request) Clone(ctx context.Context) *Request { method Funcs (line 1682) | func (r *Request) Funcs(funcs ...RequestFunc) *Request { method fmtBodyString (line 1689) | func (r *Request) fmtBodyString(sl int) (body string) { method initValuesMap (line 1757) | func (r *Request) initValuesMap() { method initTraceIfEnabled (line 1763) | func (r *Request) initTraceIfEnabled() { method isHeaderExists (line 1770) | func (r *Request) isHeaderExists(k string) bool { method isPayloadSupported (line 1775) | func (r *Request) isPayloadSupported() bool { method sendLoadBalancerFeedback (line 1796) | func (r *Request) sendLoadBalancerFeedback(res *Response, err error) { method resetFileReaders (line 1825) | func (r *Request) resetFileReaders() error { method isIdempotent (line 1845) | func (r *Request) isIdempotent() bool { method withTimeout (line 1850) | func (r *Request) withTimeout() *http.Request { function jsonIndent (line 1862) | func jsonIndent(v []byte) []byte { FILE: request_test.go type AuthSuccess (line 28) | type AuthSuccess struct type AuthError (line 33) | type AuthError struct function TestGet (line 37) | func TestGet(t *testing.T) { function TestGetGH524 (line 54) | func TestGetGH524(t *testing.T) { function TestRequestNegativeRetryCount (line 73) | func TestRequestNegativeRetryCount(t *testing.T) { function TestGetCustomUserAgent (line 84) | func TestGetCustomUserAgent(t *testing.T) { function TestGetClientParamRequestParam (line 102) | func TestGetClientParamRequestParam(t *testing.T) { function TestGetRelativePath (line 127) | func TestGetRelativePath(t *testing.T) { function TestGet400Error (line 143) | func TestGet400Error(t *testing.T) { function TestPostJSONStringSuccess (line 156) | func TestPostJSONStringSuccess(t *testing.T) { function TestPostJSONBytesSuccess (line 184) | func TestPostJSONBytesSuccess(t *testing.T) { function TestPostJSONBytesIoReader (line 202) | func TestPostJSONBytesIoReader(t *testing.T) { function TestPostJSONStructSuccess (line 221) | func TestPostJSONStructSuccess(t *testing.T) { function TestPostJSONRPCStructSuccess (line 248) | func TestPostJSONRPCStructSuccess(t *testing.T) { function TestPostJSONStructInvalidLogin (line 274) | func TestPostJSONStructInvalidLogin(t *testing.T) { function TestPostJSONErrorRFC7807 (line 299) | func TestPostJSONErrorRFC7807(t *testing.T) { function TestPostJSONMapSuccess (line 321) | func TestPostJSONMapSuccess(t *testing.T) { function TestPostJSONMapInvalidResponseJson (line 341) | func TestPostJSONMapInvalidResponseJson(t *testing.T) { type brokenMarshalJSON (line 362) | type brokenMarshalJSON struct method MarshalJSON (line 364) | func (b brokenMarshalJSON) MarshalJSON() ([]byte, error) { function TestPostJSONMarshalError (line 368) | func TestPostJSONMarshalError(t *testing.T) { function TestForceContentTypeForGH276andGH240 (line 388) | func TestForceContentTypeForGH276andGH240(t *testing.T) { function TestPostXMLStringSuccess (line 412) | func TestPostXMLStringSuccess(t *testing.T) { type brokenMarshalXML (line 432) | type brokenMarshalXML struct method MarshalXML (line 434) | func (b brokenMarshalXML) MarshalXML(e *xml.Encoder, start xml.StartEl... function TestPostXMLMarshalError (line 438) | func TestPostXMLMarshalError(t *testing.T) { function TestPostXMLStringError (line 458) | func TestPostXMLStringError(t *testing.T) { function TestPostXMLBytesSuccess (line 474) | func TestPostXMLBytesSuccess(t *testing.T) { function TestPostXMLStructSuccess (line 493) | func TestPostXMLStructSuccess(t *testing.T) { function TestPostXMLStructInvalidLogin (line 511) | func TestPostXMLStructInvalidLogin(t *testing.T) { function TestPostXMLStructInvalidResponseXml (line 532) | func TestPostXMLStructInvalidResponseXml(t *testing.T) { function TestPostXMLMapNotSupported (line 550) | func TestPostXMLMapNotSupported(t *testing.T) { function TestRequestBasicAuth (line 562) | func TestRequestBasicAuth(t *testing.T) { function TestRequestBasicAuthWithBody (line 582) | func TestRequestBasicAuthWithBody(t *testing.T) { function TestRequestInsecureBasicAuth (line 603) | func TestRequestInsecureBasicAuth(t *testing.T) { function TestRequestBasicAuthFail (line 630) | func TestRequestBasicAuthFail(t *testing.T) { function TestRequestAuthToken (line 649) | func TestRequestAuthToken(t *testing.T) { function TestRequestAuthScheme (line 665) | func TestRequestAuthScheme(t *testing.T) { function TestFormData (line 734) | func TestFormData(t *testing.T) { function TestMultiValueFormData (line 753) | func TestMultiValueFormData(t *testing.T) { function TestFormDataDisableWarn (line 774) | func TestFormDataDisableWarn(t *testing.T) { function TestGetWithCookie (line 794) | func TestGetWithCookie(t *testing.T) { function TestGetWithCookies (line 827) | func TestGetWithCookies(t *testing.T) { function TestPutPlainString (line 878) | func TestPutPlainString(t *testing.T) { function TestPutJSONString (line 891) | func TestPutJSONString(t *testing.T) { function TestPutXMLString (line 919) | func TestPutXMLString(t *testing.T) { function TestRequestMiddleware (line 933) | func TestRequestMiddleware(t *testing.T) { function TestHTTPAutoRedirectUpTo10 (line 957) | func TestHTTPAutoRedirectUpTo10(t *testing.T) { function TestHostCheckRedirectPolicy (line 973) | func TestHostCheckRedirectPolicy(t *testing.T) { function TestHttpMethods (line 986) | func TestHttpMethods(t *testing.T) { function TestSendMethod (line 1024) | func TestSendMethod(t *testing.T) { function TestRawFileUploadByBody (line 1094) | func TestRawFileUploadByBody(t *testing.T) { function TestProxySetting (line 1111) | func TestProxySetting(t *testing.T) { function TestGetClient (line 1136) | func TestGetClient(t *testing.T) { function TestIncorrectURL (line 1147) | func TestIncorrectURL(t *testing.T) { function TestDetectContentTypeForPointer (line 1159) | func TestDetectContentTypeForPointer(t *testing.T) { type ExampleUser (line 1178) | type ExampleUser struct function TestDetectContentTypeForPointerWithSlice (line 1184) | func TestDetectContentTypeForPointerWithSlice(t *testing.T) { function TestDetectContentTypeForPointerWithSliceMap (line 1206) | func TestDetectContentTypeForPointerWithSliceMap(t *testing.T) { function TestDetectContentTypeForSlice (line 1231) | func TestDetectContentTypeForSlice(t *testing.T) { function TestMultiParamsQueryString (line 1253) | func TestMultiParamsQueryString(t *testing.T) { function TestSetQueryStringTypical (line 1295) | func TestSetQueryStringTypical(t *testing.T) { function TestSetHeaderVerbatim (line 1318) | func TestSetHeaderVerbatim(t *testing.T) { function TestSetHeaderMultipleValue (line 1331) | func TestSetHeaderMultipleValue(t *testing.T) { function TestRequestSetHeaderAny (line 1344) | func TestRequestSetHeaderAny(t *testing.T) { function TestRequestSetHeaderVerbatimAny (line 1353) | func TestRequestSetHeaderVerbatimAny(t *testing.T) { function TestRequestSetQueryParamAny (line 1361) | func TestRequestSetQueryParamAny(t *testing.T) { function TestRequestSetPathParamAny (line 1370) | func TestRequestSetPathParamAny(t *testing.T) { function TestRequestSetRawPathParamAny (line 1379) | func TestRequestSetRawPathParamAny(t *testing.T) { function TestOutputFileWithBaseDirAndRelativePath (line 1388) | func TestOutputFileWithBaseDirAndRelativePath(t *testing.T) { function TestOutputFileWithBaseDirError (line 1413) | func TestOutputFileWithBaseDirError(t *testing.T) { function TestOutputPathDirNotExists (line 1420) | func TestOutputPathDirNotExists(t *testing.T) { function TestOutputFileAbsPath (line 1438) | func TestOutputFileAbsPath(t *testing.T) { function TestRequestSaveResponse (line 1456) | func TestRequestSaveResponse(t *testing.T) { function TestContextInternal (line 1508) | func TestContextInternal(t *testing.T) { function TestRequestDoNotParseResponse (line 1521) | func TestRequestDoNotParseResponse(t *testing.T) { function TestRequestDoNotParseResponseDebugLog (line 1552) | func TestRequestDoNotParseResponseDebugLog(t *testing.T) { type noCtTest (line 1589) | type noCtTest struct function TestRequestExpectContentTypeTest (line 1593) | func TestRequestExpectContentTypeTest(t *testing.T) { function TestGetPathParamAndPathParams (line 1611) | func TestGetPathParamAndPathParams(t *testing.T) { function TestReportMethodSupportsPayload (line 1632) | func TestReportMethodSupportsPayload(t *testing.T) { function TestRequestQueryStringOrder (line 1645) | func TestRequestQueryStringOrder(t *testing.T) { function TestRequestOverridesClientAuthorizationHeader (line 1661) | func TestRequestOverridesClientAuthorizationHeader(t *testing.T) { function TestRequestFileUploadAsReader (line 1678) | func TestRequestFileUploadAsReader(t *testing.T) { function TestHostHeaderOverride (line 1722) | func TestHostHeaderOverride(t *testing.T) { type HTTPErrorResponse (line 1738) | type HTTPErrorResponse struct function TestNotFoundWithError (line 1742) | func TestNotFoundWithError(t *testing.T) { function TestNotFoundWithoutError (line 1761) | func TestNotFoundWithoutError(t *testing.T) { function TestPathParamURLInput (line 1782) | func TestPathParamURLInput(t *testing.T) { function TestRawPathParamURLInput (line 1808) | func TestRawPathParamURLInput(t *testing.T) { function TestTraceInfo (line 1837) | func TestTraceInfo(t *testing.T) { function TestTraceInfoWithoutEnableTrace (line 1942) | func TestTraceInfoWithoutEnableTrace(t *testing.T) { function TestTraceInfoOnTimeout (line 1963) | func TestTraceInfoOnTimeout(t *testing.T) { function TestTraceInfoOnTimeoutWithSetTimeout (line 1985) | func TestTraceInfoOnTimeoutWithSetTimeout(t *testing.T) { function TestDebugLoggerRequestBodyTooLarge (line 2062) | func TestDebugLoggerRequestBodyTooLarge(t *testing.T) { function TestPostMapTemporaryRedirect (line 2127) | func TestPostMapTemporaryRedirect(t *testing.T) { function TestPostWith204Response (line 2140) | func TestPostWith204Response(t *testing.T) { type brokenReadCloser (line 2153) | type brokenReadCloser struct method Read (line 2155) | func (b brokenReadCloser) Read(p []byte) (n int, err error) { method Close (line 2159) | func (b brokenReadCloser) Close() error { function TestPostBodyError (line 2163) | func TestPostBodyError(t *testing.T) { function TestSetResultMustNotPanicOnNil (line 2174) | func TestSetResultMustNotPanicOnNil(t *testing.T) { function TestRequestClone (line 2183) | func TestRequestClone(t *testing.T) { function TestResponseBodyUnlimitedReads (line 2237) | func TestResponseBodyUnlimitedReads(t *testing.T) { function TestRequestAllowPayload (line 2270) | func TestRequestAllowPayload(t *testing.T) { function TestRequestNoRetryOnNonIdempotentMethod (line 2351) | func TestRequestNoRetryOnNonIdempotentMethod(t *testing.T) { function TestRequestContextTimeout (line 2383) | func TestRequestContextTimeout(t *testing.T) { function TestRequestPanicContext (line 2424) | func TestRequestPanicContext(t *testing.T) { function TestRequestSetResultAndSetOutputFile (line 2437) | func TestRequestSetResultAndSetOutputFile(t *testing.T) { function TestRequestBodyContentLengthValidation (line 2466) | func TestRequestBodyContentLengthValidation(t *testing.T) { function TestRequestFuncs (line 2495) | func TestRequestFuncs(t *testing.T) { function TestHTTPWarnGH970 (line 2529) | func TestHTTPWarnGH970(t *testing.T) { function TestRequestSettingsCoverage (line 2568) | func TestRequestSettingsCoverage(t *testing.T) { function TestRequestDataRace (line 2629) | func TestRequestDataRace(t *testing.T) { FILE: response.go type Response (line 23) | type Response struct method Status (line 41) | func (r *Response) Status() string { method StatusCode (line 51) | func (r *Response) StatusCode() int { method Proto (line 59) | func (r *Response) Proto() string { method Result (line 86) | func (r *Response) Result() any { method ResultError (line 110) | func (r *Response) ResultError() any { method Header (line 115) | func (r *Response) Header() http.Header { method Cookies (line 123) | func (r *Response) Cookies() []*http.Cookie { method String (line 137) | func (r *Response) String() string { method Bytes (line 149) | func (r *Response) Bytes() []byte { method Duration (line 159) | func (r *Response) Duration() time.Duration { method ReceivedAt (line 167) | func (r *Response) ReceivedAt() time.Time { method Size (line 175) | func (r *Response) Size() int64 { method IsStatusSuccess (line 183) | func (r *Response) IsStatusSuccess() bool { method IsStatusFailure (line 190) | func (r *Response) IsStatusFailure() bool { method RedirectHistory (line 195) | func (r *Response) RedirectHistory() []*RedirectInfo { method setReceivedAt (line 214) | func (r *Response) setReceivedAt() { method fmtBodyString (line 221) | func (r *Response) fmtBodyString(sl int) string { method readIfRequired (line 258) | func (r *Response) readIfRequired() { method readAll (line 268) | func (r *Response) readAll() (err error) { method wrapLimitReadCloser (line 289) | func (r *Response) wrapLimitReadCloser() { method wrapCopyReadCloser (line 299) | func (r *Response) wrapCopyReadCloser() { method wrapContentDecompresser (line 312) | func (r *Response) wrapContentDecompresser() error { method wrapError (line 339) | func (r *Response) wrapError(err error, preserve bool) error { FILE: resty.go constant Version (line 23) | Version = "3.0.0-beta.6" function New (line 26) | func New() *Client { function NewWithTransportSettings (line 32) | func NewWithTransportSettings(transportSettings *TransportSettings) *Cli... function NewWithClient (line 37) | func NewWithClient(hc *http.Client) *Client { function NewWithDialer (line 43) | func NewWithDialer(dialer *net.Dialer) *Client { function NewWithLocalAddr (line 48) | func NewWithLocalAddr(localAddr net.Addr) *Client { function NewWithDialerAndTransportSettings (line 57) | func NewWithDialerAndTransportSettings(dialer *net.Dialer, transportSett... function createTransport (line 68) | func createTransport(dialer *net.Dialer, transportSettings *TransportSet... function createCookieJar (line 159) | func createCookieJar() *cookiejar.Jar { function createClient (line 164) | func createClient(hc *http.Client) *Client { FILE: resty_test.go function getTestDataPath (line 43) | func getTestDataPath() string { function createGetServer (line 48) | func createGetServer(t *testing.T) *httptest.Server { function handleLoginEndpoint (line 172) | func handleLoginEndpoint(t *testing.T, w http.ResponseWriter, r *http.Re... function handleUsersEndpoint (line 239) | func handleUsersEndpoint(t *testing.T, w http.ResponseWriter, r *http.Re... function createPostServer (line 273) | func createPostServer(t *testing.T) *httptest.Server { function createFormPostServer (line 356) | func createFormPostServer(t *testing.T) *httptest.Server { function createFormPatchServer (line 436) | func createFormPatchServer(t *testing.T) *httptest.Server { function createFileUploadServer (line 484) | func createFileUploadServer(t *testing.T) *httptest.Server { function createAuthServer (line 525) | func createAuthServer(t *testing.T) *httptest.Server { function createAuthServerTLSOptional (line 529) | func createAuthServerTLSOptional(t *testing.T, useTLS bool) *httptest.Se... function createGenericServer (line 588) | func createGenericServer(t *testing.T) *httptest.Server { function createRedirectServer (line 714) | func createRedirectServer(t *testing.T) *httptest.Server { function createUnixSocketEchoServer (line 743) | func createUnixSocketEchoServer(t *testing.T) string { function createDigestServer (line 771) | func createDigestServer(t *testing.T, conf *digestServerConfig) *httptes... function authorizationHeaderValid (line 827) | func authorizationHeaderValid(t *testing.T, r *http.Request, conf *diges... function createTestServer (line 897) | func createTestServer(fn func(w http.ResponseWriter, r *http.Request)) *... function createTestTLSServer (line 901) | func createTestTLSServer(fn func(w http.ResponseWriter, r *http.Request)... function dcnl (line 916) | func dcnl() *Client { function dcnld (line 922) | func dcnld() *Client { function dcldb (line 926) | func dcldb() (*Client, *bytes.Buffer) { function dcnlr (line 934) | func dcnlr() *Request { function dcnldr (line 938) | func dcnldr() *Request { function assertNil (line 944) | func assertNil(t *testing.T, v any, failureMsgs ...string) { function assertNotNil (line 951) | func assertNotNil(t *testing.T, v any, failureMsgs ...string) { function assertType (line 958) | func assertType(t *testing.T, typ, v any, failureMsgs ...string) { function assertError (line 965) | func assertError(t *testing.T, err error, failureMsgs ...string) { function assertErrorIs (line 972) | func assertErrorIs(t *testing.T, e, g error, failureMsgs ...string) (r b... function assertTrue (line 981) | func assertTrue(t *testing.T, g any, failureMsgs ...string) (r bool) { function assertFalse (line 990) | func assertFalse(t *testing.T, g any, failureMsgs ...string) (r bool) { function assertEqual (line 999) | func assertEqual(t *testing.T, e, g any, failureMsgs ...string) (r bool) { function assertNotEqual (line 1008) | func assertNotEqual(t *testing.T, e, g any, failureMsgs ...string) (r bo... function equal (line 1019) | func equal(expected, got any) bool { function isNil (line 1023) | func isNil(v any) bool { function logResponse (line 1037) | func logResponse(t *testing.T, resp *Response) { function cleanupFiles (line 1046) | func cleanupFiles(files ...string) { function createBinFile (line 1058) | func createBinFile(fileName string, size int64) string { FILE: retry.go constant defaultWaitTime (line 21) | defaultWaitTime = time.Duration(100) * time.Millisecond constant defaultMaxWaitTime (line 22) | defaultMaxWaitTime = time.Duration(2000) * time.Millisecond type RetryConditionFunc (line 28) | type RetryConditionFunc type RetryHookFunc (line 31) | type RetryHookFunc type RetryDelayStrategyFunc (line 35) | type RetryDelayStrategyFunc function RetryConstantDelayStrategy (line 39) | func RetryConstantDelayStrategy(delay time.Duration) RetryDelayStrategyF... function applyRetryDefaultConditions (line 51) | func applyRetryDefaultConditions(res *Response, err error) bool { function newBackoffWithJitter (line 88) | func newBackoffWithJitter(min, max time.Duration) *backoffWithJitter { type backoffWithJitter (line 104) | type backoffWithJitter struct method NextWaitDuration (line 111) | func (b *backoffWithJitter) NextWaitDuration(c *Client, res *Response,... method defaultDelayStrategy (line 135) | func (b *backoffWithJitter) defaultDelayStrategy(attempt int) time.Dur... method randDuration (line 144) | func (b *backoffWithJitter) randDuration(center time.Duration) time.Du... method balanceMinMax (line 153) | func (b *backoffWithJitter) balanceMinMax(delay time.Duration) time.Du... function parseRetryAfterHeader (line 175) | func parseRetryAfterHeader(v string) (time.Duration, bool) { FILE: retry_test.go function TestRetryConditionalGet (line 26) | func TestRetryConditionalGet(t *testing.T) { function TestRequestConditionalGet (line 54) | func TestRequestConditionalGet(t *testing.T) { function TestClientRetryGetWithTimeout (line 88) | func TestClientRetryGetWithTimeout(t *testing.T) { function TestClientRetryWithMinAndMaxWaitTime (line 105) | func TestClientRetryWithMinAndMaxWaitTime(t *testing.T) { function TestClientRetryWaitMaxInfinite (line 152) | func TestClientRetryWaitMaxInfinite(t *testing.T) { function TestClientRetryWaitMaxMinimum (line 193) | func TestClientRetryWaitMaxMinimum(t *testing.T) { function TestClientRetryDelayStrategyFuncError (line 207) | func TestClientRetryDelayStrategyFuncError(t *testing.T) { function TestClientRetryDelayStrategyFunc (line 245) | func TestClientRetryDelayStrategyFunc(t *testing.T) { function TestRequestRetryDelayStrategyFunc (line 290) | func TestRequestRetryDelayStrategyFunc(t *testing.T) { function TestClientRetryDelayStrategyWaitTooShort (line 337) | func TestClientRetryDelayStrategyWaitTooShort(t *testing.T) { function TestClientRetryDelayStrategyWaitTooLong (line 382) | func TestClientRetryDelayStrategyWaitTooLong(t *testing.T) { function TestClientRetryCancel (line 427) | func TestClientRetryCancel(t *testing.T) { function TestClientRetryPost (line 468) | func TestClientRetryPost(t *testing.T) { function TestClientRetryErrorRecover (line 506) | func TestClientRetryErrorRecover(t *testing.T) { function TestClientRetryCountWithTimeout (line 537) | func TestClientRetryCountWithTimeout(t *testing.T) { function TestClientRetryTooManyRequestsAndRecover (line 563) | func TestClientRetryTooManyRequestsAndRecover(t *testing.T) { function TestClientRetryHookWithTimeout (line 588) | func TestClientRetryHookWithTimeout(t *testing.T) { type failingSeeker (line 626) | type failingSeeker struct method Read (line 630) | func (f failingSeeker) Read(b []byte) (n int, err error) { method Seek (line 634) | func (f failingSeeker) Seek(offset int64, whence int) (int64, error) { function TestResetMultipartReaderSeekStartError (line 642) | func TestResetMultipartReaderSeekStartError(t *testing.T) { function TestClientResetMultipartReaders (line 662) | func TestClientResetMultipartReaders(t *testing.T) { function TestRequestResetMultipartReaders (line 693) | func TestRequestResetMultipartReaders(t *testing.T) { function TestParseRetryAfterHeader (line 724) | func TestParseRetryAfterHeader(t *testing.T) { function TestRequestRetryTooManyRequestsHeaderRetryAfter (line 755) | func TestRequestRetryTooManyRequestsHeaderRetryAfter(t *testing.T) { function TestRetryDefaultConditions (line 777) | func TestRetryDefaultConditions(t *testing.T) { function TestRequestRetryPutIoReadSeekerForBuffer (line 831) | func TestRequestRetryPutIoReadSeekerForBuffer(t *testing.T) { function TestRequestRetryPostIoReadSeeker (line 863) | func TestRequestRetryPostIoReadSeeker(t *testing.T) { function TestRequestRetryHooks (line 894) | func TestRequestRetryHooks(t *testing.T) { function TestRequestSetRetryConditions (line 927) | func TestRequestSetRetryConditions(t *testing.T) { function TestRequestRetryQueryParamsGH938 (line 951) | func TestRequestRetryQueryParamsGH938(t *testing.T) { function TestRetryConstantDelayStrategyReturnsGivenDelay (line 980) | func TestRetryConstantDelayStrategyReturnsGivenDelay(t *testing.T) { function TestRetryConstantDelayStrategyZeroAndNegative (line 989) | func TestRetryConstantDelayStrategyZeroAndNegative(t *testing.T) { function TestRetryConstantDelayUsingMinAndMaxWaitTime (line 1004) | func TestRetryConstantDelayUsingMinAndMaxWaitTime(t *testing.T) { function TestRetryConstantDelayUsingStrategy (line 1050) | func TestRetryConstantDelayUsingStrategy(t *testing.T) { function TestRetryCoverage (line 1095) | func TestRetryCoverage(t *testing.T) { function parseTimeSleptFromResponse (line 1115) | func parseTimeSleptFromResponse(v string) uint64 { function testStaticTime (line 1120) | func testStaticTime(t *testing.T) { FILE: sse.go type SSEOpenFunc (line 44) | type SSEOpenFunc type SSEMessageFunc (line 48) | type SSEMessageFunc type SSEErrorFunc (line 52) | type SSEErrorFunc type SSERequestFailureFunc (line 56) | type SSERequestFailureFunc type SSE (line 59) | type SSE struct type SSESource (line 69) | type SSESource struct method SetURL (line 133) | func (sse *SSESource) SetURL(url string) *SSESource { method SetMethod (line 141) | func (sse *SSESource) SetMethod(method string) *SSESource { method SetHeader (line 152) | func (sse *SSESource) SetHeader(header, value string) *SSESource { method SetBody (line 163) | func (sse *SSESource) SetBody(body io.Reader) *SSESource { method TLSClientConfig (line 184) | func (sse *SSESource) TLSClientConfig() *tls.Config { method SetTLSClientConfig (line 202) | func (sse *SSESource) SetTLSClientConfig(tlsConfig *tls.Config) *SSESo... method tlsConfig (line 223) | func (sse *SSESource) tlsConfig() (*tls.Config, error) { method AddHeader (line 248) | func (sse *SSESource) AddHeader(header, value string) *SSESource { method SetRetryCount (line 263) | func (sse *SSESource) SetRetryCount(count int) *SSESource { method SetRetryWaitTime (line 278) | func (sse *SSESource) SetRetryWaitTime(waitTime time.Duration) *SSESou... method SetRetryMaxWaitTime (line 293) | func (sse *SSESource) SetRetryMaxWaitTime(maxWaitTime time.Duration) *... method SetSizeMaxBuffer (line 305) | func (sse *SSESource) SetSizeMaxBuffer(bufSize int) *SSESource { method Logger (line 313) | func (sse *SSESource) Logger() Logger { method SetLogger (line 322) | func (sse *SSESource) SetLogger(l Logger) *SSESource { method outputLogTo (line 330) | func (sse *SSESource) outputLogTo(w io.Writer) *SSESource { method OnOpen (line 343) | func (sse *SSESource) OnOpen(ef SSEOpenFunc) *SSESource { method OnError (line 360) | func (sse *SSESource) OnError(ef SSEErrorFunc) *SSESource { method OnRequestFailure (line 381) | func (sse *SSESource) OnRequestFailure(ef SSERequestFailureFunc) *SSES... method OnMessage (line 413) | func (sse *SSESource) OnMessage(ef SSEMessageFunc, result any) *SSESou... method AddEventListener (line 440) | func (sse *SSESource) AddEventListener(eventName string, ef SSEMessage... method Get (line 469) | func (sse *SSESource) Get() error { method Close (line 504) | func (sse *SSESource) Close() { method enableConnect (line 510) | func (sse *SSESource) enableConnect() { method isClosed (line 516) | func (sse *SSESource) isClosed() bool { method triggerOnOpen (line 522) | func (sse *SSESource) triggerOnOpen(hdr http.Header) { method triggerOnError (line 530) | func (sse *SSESource) triggerOnError(err error) { method triggerOnRequestFailure (line 538) | func (sse *SSESource) triggerOnRequestFailure(err error, res *http.Res... method createRequest (line 546) | func (sse *SSESource) createRequest() (*http.Request, error) { method connect (line 569) | func (sse *SSESource) connect() (*http.Response, error) { method listenStream (line 637) | func (sse *SSESource) listenStream(res *http.Response) error { method processEvent (line 669) | func (sse *SSESource) processEvent(scanner *bufio.Scanner) error { method handleCallback (line 713) | func (sse *SSESource) handleCallback(e *SSE) { type callback (line 90) | type callback struct function NewSSESource (line 113) | func NewSSESource() *SSESource { function readEventFunc (line 739) | func readEventFunc(scanner *bufio.Scanner) ([]byte, error) { function wrapResponse (line 750) | func wrapResponse(res *http.Response, req *http.Request) *Response { type rawSSE (line 757) | type rawSSE struct function parseEventFunc (line 768) | func parseEventFunc(msg []byte) (*rawSSE, error) { function trimHeader (line 801) | func trimHeader(size int, data []byte) []byte { function newRawEvent (line 817) | func newRawEvent() *rawSSE { function putRawEvent (line 826) | func putRawEvent(e *rawSSE) { FILE: sse_test.go function TestSSESourceSimpleFlow (line 23) | func TestSSESourceSimpleFlow(t *testing.T) { function TestSSESourceMultipleEventTypes (line 60) | func TestSSESourceMultipleEventTypes(t *testing.T) { function TestSSESourceOverwriteFuncs (line 133) | func TestSSESourceOverwriteFuncs(t *testing.T) { function TestSSESourceRetry (line 187) | func TestSSESourceRetry(t *testing.T) { function TestSSESourceRetryReusesRequestBody (line 268) | func TestSSESourceRetryReusesRequestBody(t *testing.T) { function TestSSESourceTLSConfigerInterface (line 309) | func TestSSESourceTLSConfigerInterface(t *testing.T) { function TestSSESourceNoRetryRequired (line 354) | func TestSSESourceNoRetryRequired(t *testing.T) { function TestGH1044TrimHeader (line 367) | func TestGH1044TrimHeader(t *testing.T) { function TestGH1041RequestFailureWithResponseBody (line 386) | func TestGH1041RequestFailureWithResponseBody(t *testing.T) { function TestSSESourceHTTPError (line 411) | func TestSSESourceHTTPError(t *testing.T) { function TestSSESourceParseAndReadError (line 423) | func TestSSESourceParseAndReadError(t *testing.T) { function TestSSESourceReadError (line 459) | func TestSSESourceReadError(t *testing.T) { function TestSSESourceWithDifferentMethods (line 480) | func TestSSESourceWithDifferentMethods(t *testing.T) { function TestSSESource_readEventFunc (line 574) | func TestSSESource_readEventFunc(t *testing.T) { function TestSSESourceCoverage (line 633) | func TestSSESourceCoverage(t *testing.T) { function TestSSESetBody (line 652) | func TestSSESetBody(t *testing.T) { function createSSESource (line 668) | func createSSESource(t *testing.T, url string, fn SSEMessageFunc, rt any... function createSSETestServer (line 691) | func createSSETestServer(t *testing.T, ticker time.Duration, fn func(io.... function createMethodVerifyingSSETestServer (line 726) | func createMethodVerifyingSSETestServer( FILE: stream.go type ContentTypeEncoder (line 35) | type ContentTypeEncoder type ContentTypeDecoder (line 38) | type ContentTypeDecoder type ContentDecompresser (line 46) | type ContentDecompresser function encodeJSON (line 49) | func encodeJSON(w io.Writer, v any) error { function encodeJSONEscapeHTML (line 53) | func encodeJSONEscapeHTML(w io.Writer, v any, esc bool) error { function encodeJSONEscapeHTMLIndent (line 59) | func encodeJSONEscapeHTMLIndent(w io.Writer, v any, esc bool, indent str... function decodeJSON (line 66) | func decodeJSON(r io.Reader, v any) error { function doDecodeJSON (line 90) | func doDecodeJSON(dec *json.Decoder, v any) error { function encodeXML (line 103) | func encodeXML(w io.Writer, v any) error { function decodeXML (line 107) | func decodeXML(r io.Reader, v any) error { type gzipReaderWrapper (line 132) | type gzipReaderWrapper struct method Read (line 191) | func (w *gzipReaderWrapper) Read(p []byte) (n int, err error) { method Close (line 202) | func (w *gzipReaderWrapper) Close() error { function acquireGzipReader (line 140) | func acquireGzipReader(r io.ReadCloser) (*gzipReaderWrapper, error) { function releaseGzipReader (line 171) | func releaseGzipReader(w *gzipReaderWrapper) { function decompressGzip (line 186) | func decompressGzip(r io.ReadCloser) (io.ReadCloser, error) { type deflateReaderWrapper (line 219) | type deflateReaderWrapper struct method Read (line 271) | func (w *deflateReaderWrapper) Read(p []byte) (n int, err error) { method Close (line 282) | func (w *deflateReaderWrapper) Close() error { function acquireDeflateReader (line 227) | func acquireDeflateReader(r io.ReadCloser) (*deflateReaderWrapper, error) { function releaseDeflateReader (line 251) | func releaseDeflateReader(w *deflateReaderWrapper) { function decompressDeflate (line 266) | func decompressDeflate(r io.ReadCloser) (io.ReadCloser, error) { type resetter (line 294) | type resetter interface constant unlimitedRead (line 298) | unlimitedRead = 0 type limitReadCloser (line 300) | type limitReadCloser struct method Read (line 307) | func (l *limitReadCloser) Read(p []byte) (n int, err error) { method Close (line 329) | func (l *limitReadCloser) Close() error { method Reset (line 336) | func (l *limitReadCloser) Reset() error { type copyReadCloser (line 343) | type copyReadCloser struct method Read (line 350) | func (r *copyReadCloser) Read(p []byte) (int, error) { method Close (line 364) | func (r *copyReadCloser) Close() error { type nopReadCloser (line 373) | type nopReadCloser struct method Read (line 378) | func (r *nopReadCloser) Read(p []byte) (int, error) { method Close (line 386) | func (r *nopReadCloser) Close() error { return nil } method Reset (line 389) | func (r *nopReadCloser) Reset() { type nopReader (line 403) | type nopReader struct method Read (line 405) | func (nopReader) Read([]byte) (int, error) { return 0, io.EOF } method ReadByte (line 406) | func (nopReader) ReadByte() (byte, error) { return 0, io.EOF } type gracefulStopReader (line 408) | type gracefulStopReader struct method Read (line 413) | func (gsr *gracefulStopReader) Read(p []byte) (n int, err error) { FILE: stream_test.go function TestDecodeJSONWhenResponseBodyIsNull (line 15) | func TestDecodeJSONWhenResponseBodyIsNull(t *testing.T) { function TestGetMethodWhenResponseIsNull (line 29) | func TestGetMethodWhenResponseIsNull(t *testing.T) { function TestDecodeJSON (line 50) | func TestDecodeJSON(t *testing.T) { function TestWrapCopyReadCloser (line 126) | func TestWrapCopyReadCloser(t *testing.T) { function TestMultipleJSONObjectsSupport (line 153) | func TestMultipleJSONObjectsSupport(t *testing.T) { function TestGzipReaderPanicOnConcurrentCorruptedBody (line 191) | func TestGzipReaderPanicOnConcurrentCorruptedBody(t *testing.T) { function TestGzipReaderAcquireAndResetError (line 290) | func TestGzipReaderAcquireAndResetError(t *testing.T) { function TestGzipReaderPoolConcurrentAccess (line 325) | func TestGzipReaderPoolConcurrentAccess(t *testing.T) { function createGzipValidData (line 360) | func createGzipValidData() []byte { function createDeflateValidData (line 368) | func createDeflateValidData() []byte { function TestDeflateReaderPanicOnConcurrentCorruptedBody (line 378) | func TestDeflateReaderPanicOnConcurrentCorruptedBody(t *testing.T) { function TestDeflateReaderPoolAcquireAndRead (line 474) | func TestDeflateReaderPoolAcquireAndRead(t *testing.T) { function TestDeflateReaderPoolConcurrentAccess (line 494) | func TestDeflateReaderPoolConcurrentAccess(t *testing.T) { function TestLimitCloserResetterInterface (line 526) | func TestLimitCloserResetterInterface(t *testing.T) { function TestDecodeXML (line 546) | func TestDecodeXML(t *testing.T) { function TestStreamMisc (line 601) | func TestStreamMisc(t *testing.T) { FILE: trace.go type TraceInfo (line 19) | type TraceInfo struct method String (line 64) | func (ti TraceInfo) String() string { method JSON (line 84) | func (ti TraceInfo) JSON() string { method Clone (line 89) | func (ti TraceInfo) Clone() *TraceInfo { type clientTrace (line 98) | type clientTrace struct method createContext (line 112) | func (t *clientTrace) createContext(ctx context.Context) context.Conte... FILE: transport_dial.go function transportDialContext (line 15) | func transportDialContext(dialer *net.Dialer) func(context.Context, stri... FILE: transport_dial_wasm.go function transportDialContext (line 15) | func transportDialContext(_ *net.Dialer) func(context.Context, string, s... FILE: util.go type Logger (line 38) | type Logger interface function createLogger (line 44) | func createLogger() *logger { type logger (line 51) | type logger struct method Errorf (line 55) | func (l *logger) Errorf(format string, v ...any) { method Warnf (line 59) | func (l *logger) Warnf(format string, v ...any) { method Debugf (line 63) | func (l *logger) Debugf(format string, v ...any) { method output (line 67) | func (l *logger) output(format string, v ...any) { type credentials (line 140) | type credentials struct method Clone (line 146) | func (c *credentials) Clone() *credentials { method String (line 153) | func (c credentials) String() string { function isStringEmpty (line 162) | func isStringEmpty(str string) bool { function detectContentType (line 167) | func detectContentType(body any) string { function isJSONContentType (line 186) | func isJSONContentType(ct string) bool { function isXMLContentType (line 190) | func isXMLContentType(ct string) bool { function inferContentTypeMapKey (line 194) | func inferContentTypeMapKey(v string) string { function firstNonEmpty (line 203) | func firstNonEmpty(v ...string) string { function createDirectory (line 218) | func createDirectory(dir string) (err error) { function getPointer (line 229) | func getPointer(v any) any { function inferType (line 240) | func inferType(v any) reflect.Type { function inferKind (line 244) | func inferKind(v any) reflect.Kind { function newInterface (line 248) | func newInterface(v any) any { function functionName (line 255) | func functionName(i any) string { function acquireBuffer (line 259) | func acquireBuffer() *bytes.Buffer { function releaseBuffer (line 269) | func releaseBuffer(buf *bytes.Buffer) { function backToBufPool (line 276) | func backToBufPool(buf *bytes.Buffer) { function closeq (line 282) | func closeq(v any) { function silently (line 288) | func silently(_ ...any) {} function isSanitizeHeader (line 296) | func isSanitizeHeader(k string) bool { function sanitizeHeaders (line 306) | func sanitizeHeaders(hdr http.Header) http.Header { function composeHeaders (line 315) | func composeHeaders(hdr http.Header) string { function sortHeaderKeys (line 323) | func sortHeaderKeys(hdr http.Header) []string { function wrapErrors (line 332) | func wrapErrors(n error, inner error) error { type restyError (line 348) | type restyError struct method Error (line 353) | func (e *restyError) Error() string { method Unwrap (line 357) | func (e *restyError) Unwrap() error { function cloneURLValues (line 362) | func cloneURLValues(v url.Values) url.Values { function cloneCookie (line 369) | func cloneCookie(c *http.Cookie) *http.Cookie { type invalidRequestError (line 386) | type invalidRequestError struct method Error (line 390) | func (ire *invalidRequestError) Error() string { function drainBody (line 394) | func drainBody(res *Response) { function drainReadCloser (line 400) | func drainReadCloser(body io.ReadCloser) { function toJSON (line 407) | func toJSON(v any) string { function formatAnyToString (line 416) | func formatAnyToString(value any) string { function newGUID (line 498) | func newGUID() string { function readRandomUint32 (line 519) | func readRandomUint32() uint32 { function readMachineID (line 534) | func readMachineID() []byte { FILE: util_test.go function TestIsJSONContentType (line 22) | func TestIsJSONContentType(t *testing.T) { function TestIsXMLContentType (line 56) | func TestIsXMLContentType(t *testing.T) { function TestCloneURLValues (line 88) | func TestCloneURLValues(t *testing.T) { function TestRestyErrorFuncs (line 100) | func TestRestyErrorFuncs(t *testing.T) { function Test_createDirectory (line 117) | func Test_createDirectory(t *testing.T) { function TestUtil_readRandomUint32 (line 131) | func TestUtil_readRandomUint32(t *testing.T) { function TestUtil_readMachineID (line 149) | func TestUtil_readMachineID(t *testing.T) { function TestInMemoryJSONMarshalUnmarshal (line 186) | func TestInMemoryJSONMarshalUnmarshal(t *testing.T) { function TestInMemoryXMLMarshalUnmarshal (line 231) | func TestInMemoryXMLMarshalUnmarshal(t *testing.T) { function TestInMemoryJSONPost (line 276) | func TestInMemoryJSONPost(t *testing.T) { function TestInMemoryXMLPost (line 302) | func TestInMemoryXMLPost(t *testing.T) { function TestUtilMiscTestCoverage (line 328) | func TestUtilMiscTestCoverage(t *testing.T) { type customStringer (line 347) | type customStringer struct method String (line 351) | func (c customStringer) String() string { function TestFormatAnyToString (line 355) | func TestFormatAnyToString(t *testing.T) {