Trait httptest::responders::Responder
source · pub trait Responder: Send {
// Required method
fn respond<'a>(
&mut self,
req: &'a Request<Bytes>
) -> Pin<Box<dyn Future<Output = Response<Body>> + Send + 'a>>;
}
Expand description
Respond with an HTTP response.