http/body_limit_schema.ts

The body size limit's middleware shape minus its handler — hono-free data, so the surface builders that never mount the limit (testing/stubs.ts) declare it without importing hono/body-limit.

view source

Declarations
#

body_limit_middleware_shape
#

http/body_limit_schema.ts view source

{ readonly name: "body_limit"; readonly path: "*"; readonly errors: readonly [RestErrorDef<413, "payload_too_large", Record<never, never>>, RestErrorDef<400, "invalid_content_length", Record<...>>]; } import {body_limit_middleware_shape} from '@fuzdev/fuz_app/http/body_limit_schema.js';

The body limit's middleware spec minus its handler: at '*', ahead of the other middleware, answering 413 payload_too_large past the cap and 400 invalid_content_length to a Content-Length it cannot read. create_body_limit_middleware_spec (http/body_limit.ts) spreads it and attaches the live handler.

Depends on
#

Imported by
#