Routing mixin
Mixin to Context
extends default Context
additional fields specified
for Router
Properties
- body ↔ dynamic
-
getter/setter pairinherited
- canHijack → bool
-
Whether this request can be hijacked.
no setterinherited
- contentType ↔ ContentType?
-
Response Content-type field of headers
getter/setter pairinherited
- error ↔ HttpError?
-
Error if ctxThrow
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → HttpHeaders
-
base response HttpHeaders
no setterinherited
-
params
↔ Map<
String, String> -
RegExp route params
getter/setter pair
-
query
→ Map<
String, String> -
Uri.params
no setter
- request → HttpRequest
-
base HttpRequest
no setterinherited
- response → HttpResponse
-
base HttpResponse
no setterinherited
- routerPrefix ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode ↔ int
-
Response status code
getter/setter pairinherited
Methods
-
hijack(
void callback(StreamChannel< List< )) → Neverint> > -
Takes control of the underlying request socket.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, String value) → void -
Set Response HttpHeaders field
key
- key of headervalue
- value for key of headerinherited -
throwError(
int status, {String? message, StackTrace? stackTrace, Exception? exception}) → void -
Throw HttpError with
status
code,message
andstackTrace
and errorinherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited