# Functions
Delay waits for the duration to elapse or the context to be cancelled.
GetJSON reads the response body into a raw JSON object.
HasStatusCode returns true if the Response's status code is one of the specified values.
NewExpiringResource creates a new ExpiringResource that uses the specified AcquireResource for refreshing.
NewNopClosingBytesReader creates a new NopClosingBytesReader around the specified byte slice.
NewResponseError creates a new *ResponseError from the provided HTTP response.
NopCloser returns a ReadSeekCloser with a no-op close method wrapping the provided io.ReadSeeker.
Payload reads and returns the response body or an error.
RetryAfter returns non-zero if the response contains a Retry-After header value.
TypeOfT returns the type of the generic type param.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Module is the name of the calling module used in telemetry data.
Version is the semantic version (see http://semver.org) of this module.
# Variables
ErrNoBody is returned if the response didn't contain a body.
# Structs
AccessToken represents an Azure service bearer access token with expiry information.
CtxIncludeResponseKey is used as a context key for retrieving the raw response.
CtxWithHTTPHeaderKey is used as a context key for adding/retrieving http.Header.
CtxWithRetryOptionsKey is used as a context key for adding/retrieving RetryOptions.
ExpiringResource is a temporal resource (usually a credential) that requires periodic refreshing.
NopClosingBytesReader is an io.ReadSeekCloser around a byte slice.
ResponseError is returned when a request is made to a service and the service returns a non-success HTTP status code.
TokenRequestOptions contain specific parameter that may be used by credentials types when attempting to get a token.
# Interfaces
TokenCredential represents a credential capable of providing an OAuth token.
# Type aliases
AcquireResource abstracts a method for refreshing an expiring resource.