http/body_limit.ts view source
(max_size: number): MiddlewareHandler import {create_body_limit_middleware} from '@fuzdev/fuz_app/http/body_limit.js'; Create the body size limit middleware.
max_size
the largest accepted body, in bytes
type
numberreturns
MiddlewareHandler middleware answering 413 {error: 'payload_too_large'} past the cap and 400 {error: 'invalid_content_length'} to a Content-Length that is not a run of digits