#tide #middleware #delay #web-framework

tide-delay

Middleware for the Tide web framework that delays responses

1 unstable release

0.0.1 Dec 31, 2020

#54 in #tide

MIT license

3KB

tide-delay

A middleware for the Tide web framework that delays responses.

Example

let mut app = tide::new();
app.with(tide_delay::DelayMiddleware::new(
    std::time::Duration::from_millis(250),
));
app.at("/")
    .get(|_| async { Ok(Response::new(StatusCode::Ok)) });

Dependencies

~10–21MB
~297K SLoC