Event class final
Request-scoped context passed to routes, middleware, and error handlers.
Constructors
- Event({required Spry app, required Request request, required RequestContext context, RouteParams? params, Locals? locals, Uri? url})
- Creates an event for the active request.
Properties
- app → Spry
-
Application instance handling the request.
final
- context → RequestContext
-
Runtime request context.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → Headers
-
Request headers.
no setter
- locals → Locals
-
Per-request local storage shared across handlers.
final
- method → String
-
Request method.
no setter
- params → RouteParams
-
Route parameters extracted from the matched route.
final
- path → String
-
Request path including the query string when present.
no setter
- pathname → String
-
Request pathname without query parameters.
no setter
- query → URLSearchParams
-
Query parameters for the request URL.
latefinal
- request → Request
-
Incoming request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → Uri
-
Request URL.
final
- ws → EventWebSocket
-
Websocket controls and metadata for the active request.
latefinal
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