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).
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
IncomingHttpEventis processed. Limits come fromstone.http.limits(0disables a given check).Template: TEvent
The incoming HTTP event type.
Template: UResponse
The outgoing HTTP response type.