Skip to content

basalt / hono/src / DEFAULT_BODY_LIMIT

Variable: DEFAULT_BODY_LIMIT ​

> const DEFAULT_BODY_LIMIT: 1048576 = 1_048_576

Defined in: http/src/media-type.ts:12

Default maximum size, in bytes, of a request body an adapter buffers and parses (1 MiB) — Fastify's own default, and the one the Express and Hono adapters apply unless told otherwise. upload() and rawBody() routes carry their own limits.

Released under the MIT License.