Types
@system-inc/base-foundation · 515c140 · 6 symbols
AllowedOrigin
BaseMiddlewareFn
A middleware function. Runs for each request.
Return void to continue to the next middleware.
Return a Response to short-circuit the pipeline.
Throw an Error to signal a failure.
What modules register as middleware — either a class or a function.
A handler-scoped middleware function. Runs after the dispatcher has
resolved the handler, so rc.handler is guaranteed to be present.
Same short-circuit semantics as BaseMiddlewareFn.
What modules register as handler-scoped middleware — either a class
or a function. Registered via ModuleSettings.middleware.handler or
attached directly to a handler via @WithMiddleware.
Callback invoked before the decorated method runs. Receives the RequestContext for the current request. Throw to abort the call.