1 2 3 4 5 6 7 8 9 10 11 12
//! A client capable of executing requests use crate::{Error, Fut}; /// A client capable of executing requests // TODO(orion): decouple from hyper pub trait Client { /// Execute a request fn execute(&self, req: hyper::Request<hyper::Body>) -> Fut<Result<hyper::Response<hyper::Body>, Error>>; }