/Knowledge/sources/honojs__hono/llms-full/body-limit-middleware--83effcecc0d2.md
Body Limit Middleware - hono-docs
Body Limit Middleware Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt body limit middleware Summary Th...
Body Limit Middleware
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#body-limit-middleware
Summary
The Body Limit Middleware can limit the file size of the request body. This middleware first uses the value of the Content-Length header in the request, if present. If it is not set, it reads the body in the stream and executes an erro...
Content
The Body Limit Middleware can limit the file size of the request body.
This middleware first uses the value of the Content-Length header in the request, if present.
If it is not set, it reads the body in the stream and executes an error handler if it is larger than the specified file size.
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#body-limit-middleware",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Body Limit Middleware",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 261,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Body Limit Middleware",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}