router/route library
Classes
-
ControllerAction<
T extends Object> - A route action that points to a method of a controller from the container. The controller is made once per isolate, at start.
- Route
- RouteBinding
- one binder added with Route.bind
Functions
Typedefs
-
RawRequestHandler
= Future<
void> Function(HttpRequest request) - raw handler for every request under a path prefix, see Route.mount
-
RouteBinder<
T> = FutureOr< T?> Function(String value) - turns the raw text of a route param into a value, like a model. null means not found: the request gets 404.
-
WebSocketHandler
= FutureOr<
void> Function(WebSocket socket, DoxRequest req) - gets the open socket of a Route.websocket request