async fn read_body_limited(
response: Response,
needed_lines: usize,
) -> Result<String, GitHubExpandError>Expand description
Reads the response body chunk by chunk, stopping as soon as needed_lines
complete lines have been received.
Dropping response before the transfer finishes aborts it, so the bytes past
the last displayed line are never downloaded.