Response class

Constructors

Response.new({required HttpResponse original, required Request request, Map<String, String?> headers = const {}})
Response.from(Request request)

Properties

body String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String?>
getter/setter pair
original HttpResponse
getter/setter pair
request Request
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
no getter

Methods

close(Request request) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
write([String? overwrite]) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

notFound() → Never

Constants

HTTP_METHOD_NOT_ALLOWED → const int
HTTP_NOT_FOUND → const int