Skip to main content

PkiTransport

Trait PkiTransport 

Source
pub trait PkiTransport: Send + Sync {
    // Required methods
    fn post(
        &self,
        url: &str,
        body: &[u8],
        content_type: &str,
    ) -> Result<Vec<u8>, PkiTransportError>;
    fn get(&self, url: &str) -> Result<Vec<u8>, PkiTransportError>;
}
Expand description

Carrier of the PKI messages.

Required Methods§

Source

fn post( &self, url: &str, body: &[u8], content_type: &str, ) -> Result<Vec<u8>, PkiTransportError>

POST body to url; returns the response body.

Source

fn get(&self, url: &str) -> Result<Vec<u8>, PkiTransportError>

GET url; returns the response body.

Implementors§