[−][src]Function krill::commons::util::httpclient::post_json_with_response
pub async 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.