HttpResponseSuccess class

A successful HttpResponse.

Inheritance

Constructors

HttpResponseSuccess({required BaseResponse response, required HttpRequest request, required Uint8List body})
Create a new HttpResponseSuccess.

Properties

body Uint8List
The body of the response as it was received from the API.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hasJsonBody bool
Whether jsonBody contains the JSON decoded body of the response.
latefinalinherited
headers Map<String, String>
The headers from the response.
finalinherited
jsonBody ↔ dynamic
The JSON decoded body of the response.
latefinalinherited
request HttpRequest
The HttpRequest this response is for.
finalinherited
response BaseResponse
The BaseResponse from package:http this HttpResponse is wrapping.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The status code of the response.
finalinherited
textBody String?
The UTF-8 decoded body of the response.
latefinalinherited

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

Static Methods

fromResponse(HttpRequest request, StreamedResponse response) Future<HttpResponseSuccess>
Create a HttpResponseSuccess from a StreamedResponse.