Skip to main content

read_response_bytes

Function read_response_bytes 

Source
pub async fn read_response_bytes(
    response: Response,
    limit: usize,
) -> Result<Bytes>
Expand description

Read a native buffered response without trusting Content-Length. Streaming callers use chunk() directly; buffered model events have a byte cap and whole-read deadline.