BaseResponse class abstract
The base class for HTTP responses.
Subclasses of BaseResponse are usually not constructed manually; instead, they're returned by BaseClient.send or other HTTP client methods.
- Implementers
Constructors
-
BaseResponse(int statusCode, {int? contentLength, BaseRequest? request, Map<
String, String> headers = const {}, bool isRedirect = false, bool persistentConnection = true, String? reasonPhrase})
Properties
- contentLength → int?
-
The size of the response body, in bytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- isRedirect → bool
-
final
- persistentConnection → bool
-
Whether the server requested that a persistent connection be maintained.
final
- reasonPhrase → String?
-
The reason phrase associated with the status code.
final
- request → BaseRequest?
-
The (frozen) request that triggered this response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The HTTP status code for this response.
final
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