Skip to main content

get_text

Function get_text 

Source
pub async fn get_text(
    url: &str,
    cancel: &CancellationToken,
) -> Result<String, FetchError>
Expand description

GET and fully read a UTF-8 response body. Rejects non-2xx responses. cancel aborts the Fetch at any point, including while the body is read.