Response class Null safety

A convenience class that contains an HTTP response

Constructors

Response({required Request request, required int statusCode, required Map<String, dynamic> headers, required ContentType contentType, required String body})
Constructor
const

Properties

body String
The body of the response
final
contentType ContentType
The ContentType of the response
final
hashCode int
The hash code for this object. [...]
read-only, override
headers Map<String, dynamic>
The headers to append to the response
final
request Request
The request that generated this response
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusCode int
The HTTP status code
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
override