Skip to main content

post_with_retry

Function post_with_retry 

Source
pub fn post_with_retry(
    transport: &dyn PkiTransport,
    url: &str,
    body: &[u8],
    content_type: &str,
    retry: Option<&Retry>,
) -> Result<Vec<u8>, PkiTransportError>
Expand description

POST body (always the same message) until a response is received, following retry (one transmission when None). The error when no response came: the caller then drops the request and its session key (clause 5.1.2, case 2).