Response class

  • contains getters and logic to respond to incoming req
Available Extensions

Constructors

Response(HttpRequest request, {int? statusCode, ContentType? contentType})

Properties

contentType ContentType?
final
defStatusCode int
no setter
hashCode int
The hash code for this object.
no setterinherited
headers HttpHeaders
no setter
isClosed bool
no setter
request HttpRequest
latefinal
response HttpResponse
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
final

Methods

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

Operators

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