Skip to main content

read_body_limited

Function read_body_limited 

Source
async fn read_body_limited(
    response: Response,
    limit: ReadLimit,
) -> Result<String, GitHubExpandError>
Expand description

Reads the response body chunk by chunk, stopping as soon as limit is met.

Dropping response before the transfer finishes aborts it, so the bytes past the last displayed line are never downloaded.