Response class
Constructors
Properties
- body → Body?
-
no setter
- bufferedBytes → Uint8List?
-
The whole body when it is already in memory as one piece
(Response.bytes, Response.text, Response.json); null for a body
that is a stream, or for no body.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → Headers
-
final
- isStream → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
final
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