MCPcopy Create free account
hub / github.com/Sovereign-Engineering/obscuravpn-client / resolve

Method resolve

rustlib/src/debug_bundle/http.rs:79–82  ·  view source on GitHub ↗
(&self, _: reqwest::dns::Name)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected