Skip to content

HttpBeforeHandler

type HttpBeforeHandler = (ctx: FlareHttpContext, scope: HandlerScope) => MiddlewareOverride | Promise<MiddlewareOverride>

before middleware hook signature.

Middleware and error handlers run outside any route contract, so their scope is the DI + config base with no input; read raw request data from ctx.

Learn: Inline middleware

Last updated: