Skip to main content

read_response_with_limit

Function read_response_with_limit 

Source
pub async fn read_response_with_limit<R: AsyncRead + Unpin>(
    reader: &mut R,
    max: usize,
) -> Result<(Response, usize)>
Expand description

Read one Response with a caller-supplied cap.