Stone.js API
    Preparing search index...

    Enforces what a route declared about its budget.

    On the router layer, and outside every other route middleware, because rejecting early is the entire point: a caller past its budget must not reach authentication, a database or a mail provider. That ordering is the difference between a limit that protects a system and a limit that merely reports on it after the work is done.

    Index
    • Parameters

      • event: IncomingEvent

        The incoming event.

      • next: NextMiddleware<IncomingEvent, OutgoingResponse>

        The next middleware.

      Returns Promise<OutgoingResponse>

      The outgoing response.