Skip to main content

MAX_REQUEST_BODY

Constant MAX_REQUEST_BODY 

Source
pub const MAX_REQUEST_BODY: usize = melin_wire_protocol::framing::MAX_REQUEST_BODY /* 1_015usize */;
Expand description

Bound on one request body — what an application’s RequestDecoder is handed after the runtime has read the tag and the request’s ID. Public so an application can check its widest request against it at compile time; see the re-export in the crate root. The wire protocol’s, the bound a client’s request framing enforces, so the two sides agree on it by construction.