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

pub fn post_json_with_response<T: DeserializeOwned>(
    uri: &str,
    data: impl Serialize,
    token: Option<&Token>
) -> Result<T, Error>

Performs a POST of data that can be serialized into json, and expects a json response that can be deserialized into the an owned value of the expected type.