RateLimitedResponse class

An ApiResponse that represents a rate limited response.

ApiClients will automatically retry these requests.

Implemented types

Constructors

RateLimitedResponse(ErrorApiResponse inner, {Duration? retryAfter, String? additionalInformation})
Create a new RateLimitedResponse.

Properties

additionalInformation → String?
finalinherited
body → String
The body of the response as a string.
no setterinherited
bodyBytes → Uint8List
The bytes comprising the body of this response.
no setterinherited
contentLength → int?
The size of the response body, in bytes.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasJsonBody → bool
Whether the body of the request was parseable as JSON.
no setterinherited
headers → Map<String, String>
The HTTP headers returned by the server.
no setterinherited
inner → ErrorApiResponse
finalinherited
isRedirect → bool
no setterinherited
jsonBody → dynamic
The body of the request deserialized as JSON.
no setterinherited
persistentConnection → bool
Whether the server requested that a persistent connection be maintained.
no setterinherited
reasonPhrase → String?
finalinherited
request → BaseRequest
The (frozen) request that triggered this response.
no setterinherited
retryAfter → Duration?
The time after which the request should be retried.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int
finalinherited
stream → ByteStream
The stream from which the response body data can be read.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited