Stone.js API
    Preparing search index...

    Kernel middleware that rejects requests carrying too many headers or cookies.

    Defence-in-depth against denial-of-service. The Node HTTP server already bounds header count/size, but that protection is unavailable on serverless runtimes (AWS Lambda, edge), so this adapter-agnostic guard enforces the limits uniformly wherever an IncomingHttpEvent is processed. Limits come from stone.http.limits (0 disables a given check).

    The incoming HTTP event type.

    The outgoing HTTP response type.

    Index
    • Create a RequestLimitsMiddleware.

      Parameters

      • blueprint: { blueprint: IBlueprint }

        The configuration blueprint.

      Returns RequestLimitsMiddleware