HttpResponse class final

Represents an Http response

Constructors

HttpResponse(int? statusCode, Map<String, dynamic>? body, {Map<String, String>? headers})
Constructs an HttpResponse with the provided status code, body and optional response headers.
const

Properties

body → Map<String, dynamic>?
The body of the HTTP response. Can be a map of String to dynamic if a body was received, or null otherwise.
final
hashCode → int
The hash code for this object.
no setteroverride
headers → Map<String, String>?
The response headers, when the requester provides them; keys keep the requester's casing. The transport reads the Correlation-ID of error responses from here. Not part of equality.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
The status code returned by the HTTP response. Can be null if no status code was received.
final

Methods

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

Operators

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