Function httptest::responders::delay_and_then

source ยท
pub fn delay_and_then<R: Responder>(delay: Duration, and_then: R) -> Delay<R>
Expand description

respond with the given responder after a delay

This is useful for testing request timeouts.