Transport

Trait Transport 

Source
pub trait Transport {
    // Required method
    fn send(&self, signed: Request) -> Result<(u16, String), Box<dyn Error>>;
}
Expand description

A trait to implement the behavior for sending requests, often your “IO” layer

Required Methods§

Source

fn send(&self, signed: Request) -> Result<(u16, String), Box<dyn Error>>

Accepts a signed http::Request<Vec<u8>> and returns a tuple representing a response’s HTTP status code and body

Implementors§