1 unstable release
0.0.1 | Dec 31, 2020 |
---|
#58 in #tide
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
~320K SLoC