Function krill::commons::util::httpclient::post_binary_with_full_ua
source · pub async fn post_binary_with_full_ua(
uri: &str,
data: &Bytes,
content_type: &str,
timeout: u64
) -> Result<Bytes, Error>
Expand description
Posts binary data, and expects a binary response. Includes the full krill version as the user agent. Intended for sending RFC 6492 (provisioning) and 8181 (publication) to the trusted parent or publication server.
Note: Bytes may be empty if the post was successful, but the response was empty.