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

pub async fn post_json<'_, '_>(
    uri: &'_ str,
    data: impl Serialize,
    token: Option<&'_ Token>
) -> Result<(), Error>

Performs a POST of data that can be serialized into json, and expects a 200 OK response, without a body.