Skip to main content

get

Function get 

Source
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

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