Trait tiny_dynamo::Transport[][src]

pub trait Transport {
    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

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

Implementors