(&self, _: reqwest::dns::Name)
| 77 | result.header_content_type = header_str(reqwest::header::CONTENT_TYPE); |
| 78 | result.header_date = header_str(reqwest::header::DATE); |
| 79 | |
| 80 | let mut reader = StreamReader::new(res.bytes_stream().map_err(std::io::Error::other)); |
| 81 | let mut body = Vec::new(); |
| 82 | if let Err(error) = (&mut reader).take(u64::try_from(BODY_LIMIT + 1)?).read_to_end(&mut body).await { |
| 83 | result.error = Some(error.to_string()); |
| 84 | } |
| 85 | result.body_truncated = body.len() > BODY_LIMIT; |
nothing calls this directly
no outgoing calls
no test coverage detected