pub const MAX_BODY_BYTES: usize = _ /* 262_144usize */;Available on crate feature
server only.Expand description
The transport bound on a Trust Task document (SPEC §12.2, §12.4): the
smallest request-body limit HttpsServer::into_router applies, and the
size bound held against a document whose specification declares no
maxDocumentBytes. Trust Task payloads are small; 256 KiB is generous
headroom while bounding pre-auth memory use.
The router’s limit is the larger of this and the largest
maxDocumentBytes among the registered request types
(Payload::MAX_DOCUMENT_BYTES) — so a server that registers a task
whose specification promises to accept a larger document can, and one
that does not never buffers more than this — unless
HttpsServerBuilder::max_body_bytes sets it outright.