[][src]Function krill::commons::util::httpclient::get_json

pub 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.