pub const MAX_REQUEST_BYTES: usize = 30_000_000;Expand description
Default ceiling on one serialized API request body: 30 MB (decimal).
Each backend can override this with max_request_bytes. The check includes
images accumulated in history and JSON overhead, and refuses oversized bodies
before upload with Recovery::OmitLastMessage.