HttpResponse class

Raw transport response returned by an HttpClient.

Constructors

HttpResponse.new({required int? statusCode, required Map<String, String> headers, required dynamic data})
Creates a transport response.
const

Properties

data → dynamic
Raw response payload before SDK contract evaluation.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Response headers flattened into a string map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP status code returned by the transport.
final

Methods

copyWith({int? statusCode, Map<String, String>? headers, Object? data}) HttpResponse
Returns a copy of this response with selected fields replaced.
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