pub async fn get(url: &str) -> Result<String>Expand description
Fetch a URL with a 2 MiB body cap and a 15 s timeout.
Returns the raw body decoded as UTF-8 (lossy) on success.
ยงErrors
crate::Error::Httpโ reqwest client / connect / read error.crate::Error::Sanitizeโ HTTP non-2xx status, or body size strictly greater than 2 MiB.
The caller (sanitize pipeline) is responsible for treating the returned content as untrusted.