pub const MAX_REQUEST_BODY_BYTES: usize = _; // 67_108_864usizeExpand description
Maximum allowed inbound request body size, in bytes. 64 MiB.
Documented in API.md under “Request limits”. Requests larger than this
are rejected with 413 Payload Too Large by axum’s
DefaultBodyLimit at extract time
(i.e., when a handler reads the body via Bytes, Json, etc.). We use
axum’s native DefaultBodyLimit::max rather than
tower_http::limit::RequestBodyLimitLayer: the tower-http layer rewraps
the request body in Limited<Body>, which breaks composition with
axum::middleware::from_fn (bearer auth, tenant scope) downstream, and
DefaultBodyLimit::max gives the same 413 contract without the rewrap.