pub async fn read_capped(
response: Response,
max: usize,
) -> Result<Vec<u8>, BodyError>Expand description
response’s body, refused past max bytes: a declared length over it
is refused before anything is read, and the read stops at the first
chunk past it. EgressClient::send bounds a request’s time, not its
size; this is the size (the egress plan’s O3), for every caller that
reads a whole body (OAuth’s documents and token responses, plan 8f).