Skip to main content

MAX_JSON_RESPONSE_BYTES

Constant MAX_JSON_RESPONSE_BYTES 

Source
pub const MAX_JSON_RESPONSE_BYTES: usize = _; // 33_554_432usize
Expand description

Maximum size of a structured JSON / NDJSON response body that the crate will buffer. Bee responses larger than this are rejected before the body is fully read; bulk file downloads should bypass the in-memory pipeline via crate::file::FileApi::download_file_response.

32 MiB matches bee-go’s swarm.MaxJSONResponseBytes and bee-py’s MAX_RESPONSE_BYTES.