ServerRouteContext<P, S> class final

Typed input for one public HTTP route handler.

Constructors

ServerRouteContext({required RequestContext context, required P params, required S search, required Uri location})
Creates route handler input.
const

Properties

app → AppContext
Explicitly installed request application modules.
no setter
context → RequestContext
Request-scoped application and HTTP state.
final
hashCode → int
The hash code for this object.
no setterinherited
location → Uri
Complete matched location.
final
params → P
Path parameters owned by the route.
final
request → ServerRequest
Incoming HTTP request.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Search state owned by the route.
final

Methods

maybe<T extends Object>(ContextKey<T> key) → T?
Reads an optional application service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read<T extends Object>(ContextKey<T> key) → T
Reads an application service.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited