Context class
Context encapsulates the current HTTP request and response building utilities.
Properties
Methods
-
json(
Object? body, {int statusCode = 200, Map< String, Object> ? headers}) → Response - Returns a JSON response.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
text(
String body, {int statusCode = 200, Map< String, Object> ? headers}) → Response - Returns a text response.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited