core/router library

Classes

RouteData
Holds the handler and metadata for a specific route.
RouteNode
A node in the routing trie.
Router
The core routing engine for Kronix.

Typedefs

Handler = Future<Response> Function(Context ctx)
A function that handles a standard HTTP request and returns a response.
WebSocketHandler = FutureOr<void> Function(WebSocketConnection connection)
A function that handles an active WebSocketConnection.