Skip to main content

get

Function get 

Source
pub fn get(url: &str) -> Result<ClientResponse, Error>
Available on crate feature std only.
Expand description

Fetches url with GET using the default Client.

§Errors

Error::InvalidUrl for anything but http://host[:port][/path], Error::Io for connection failures and timeouts, Error::Http for a response this crate refuses (including one over the body limit).

§Examples

See Server.