AppKernel class

The core HTTP kernel of the Archery framework.

Responsible for:

  • Running global middleware pipeline
  • Delegating request to the Router for route matching

Acts as the entry point for all incoming HttpRequests.

Global Middleware Flow:

[AppKernel] → [middleware[0]] → [middleware[1]] → ... → [Router.dispatch]

Constructors

AppKernel({List<HttpMiddleware> middleware = const [], required Router router})
Creates a new kernel with optional middleware and required router.

Properties

hashCode int
The hash code for this object.
no setterinherited
middleware List<HttpMiddleware>
List of global middleware applied to every request.
final
router Router
The router responsible for route matching and dispatch.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handle(HttpRequest request) → void
Handles an incoming HttpRequest by running global middleware, then dispatching to the router.
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