get_json

Function get_json 

Source
pub async fn get_json<U, O>(uri: U) -> Result<O, Box<dyn Error + Send + Sync>>
where U: TryInto<Uri>, Box<dyn Error + Send + Sync>: From<<U as TryInto<Uri>>::Error>, O: DeserializeOwned + Unpin,
Expand description

Send a GET request to the uri and de-serializes the response.

The http_client is used to send the request.