handle method
void
handle()
Initiates the route processing workflow for the current request.
This method serves as the main entry point for route handling. It begins the route matching process by delegating to checkAll with the configured routing table. The method will attempt to find a matching route pattern for the current request's path, method, host, and port constraints.
The routing process follows this hierarchy:
- Match route patterns (including URL parameters)
- Validate HTTP methods, hosts, and ports
- Execute authentication and authorization checks
- Render appropriate response (controller, widget, or static file)
- Fallback to static file serving or 404 error
Note: The method name contains a typo and should be handle() in future versions.
Implementation
void handle() async {
if (!await checkAll(routing)) {
_readFromPublic();
}
}