[−][src]Function krill::commons::util::httpclient::get_json
pub async fn get_json<'_, '_, T: DeserializeOwned>(
uri: &'_ str,
token: Option<&'_ Token>
) -> Result<T, Error>
Performs a GET request that expects a json response that can be deserialized into the an owned value of the expected type. Returns an error if nothing is returned.