1use hyper::Request; 2 3use crate::{BoxResult, SgBody}; 4 5pub trait Inject { 6 /// Inject the request with some data. 7 /// # Errors 8 /// If the injection fails. 9 fn inject(&self, req: &mut Request<SgBody>) -> BoxResult<()>; 10}