zng::task::http

Function get_txt

source
pub async fn get_txt(uri: impl TryUri) -> Result<Txt, Error>
Expand description

Send a GET request to the uri and read the response as a string.

The default_client is used to send the request.