Response extension type
A JS interop wrapper for the Express Response
object.
This class allows you to interact with the Express Response
object
from Dart code using js_interop. The methods and properties of this class
correspond to the methods and properties of the Express Response
object
in JavaScript.
- on
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
end(
) → void - Ends the response process.
-
json(
JSAny? body) → Response - Sends a JSON response with the specified body.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
JSAny? body) → Response - Sends the response with the specified body.
-
setHeader(
String field, String value) → Response - Sets a header field in the response.
-
status(
int code) → Response - Sets the HTTP status for the response.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited