Response class

Available extensions

Constructors

Response(HttpResponse _httpResponse)
init new response

Properties

connectionInfo HttpConnectionInfo?
Gets information about the client connection. Returns null if the socket is not available.
no setter
cookies List<Cookie>
Cookies to set in the client (in the 'set-cookie' header).
no setter
hashCode int
The hash code for this object.
no setterinherited
headers HttpHeaders
Returns the response HttpHeaders.
no setter
nativeStatus int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
getter/setter pair
writer ResponseWriter?
response writer helper
getter/setter pair

Methods

bgTask(dynamic task()) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(String htmlOrDir) → void
send a html content type response
send(String txt) → void
send a json content type response
sendFile(String dir) → void
send a file as stream
sendJson(Map json) → void
send a json content type response
toString() String
A string representation of this object.
inherited

Operators

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