Response class
Abstract base class for a response.
The various handlers return a Future
to an object based on
this type. See the RequestHandler and ExceptionHandler typedefs.
- Implementers
Constructors
- Response()
Properties
- contentType ↔ ContentType
-
Content-type of the response.
read / write
-
Cookies in the response.
final
-
headers
→ Map<
String, List< String> > -
HTTP headers in the response.
final
- status ↔ int
-
HTTP status code. [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
- Set a cookie. [...]
- Delete a cookie.
-
finish(
Request req) → Future - Method that is invoked at the end of creating the HTTP response. [...]
-
header(
String name, String value) → void - Set a HTML header [...]
-
headerAdd(
String name, String value) → void - Set a HTTP header
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited