Response class
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
json(
Object? data, {int status = 200, Headers? headers}) → Response -
redirect(
String location, [int status = 302]) → Response -
stream(
void fn(StreamSink< List< ), {int status = 200, Headers? headers}) → Responseint> > -
text(
String s, {int status = 200, Headers? headers, Encoding encoding = utf8}) → Response