Skip to main content

get

Function get 

Source
pub async fn get(url: &str, timeout_secs: u64) -> Result<String>
Expand description

Fetch a URL with a 2 MiB body cap and a timeout driven by timeout_secs.

Returns the raw body decoded as UTF-8 (lossy) on success.

ยงErrors

The caller (sanitize pipeline) is responsible for treating the returned content as untrusted.