tide-delay

Crates.iotide-delay
lib.rstide-delay
version0.0.1
sourcesrc
created_at2020-12-31 08:34:15.131866
updated_at2020-12-31 08:34:15.131866
descriptionMiddleware for the Tide web framework that delays responses
homepage
repositoryhttps://gitlab.com/mneumann_ntecs/tide-delay
max_upload_size
id329584
size4,711
Michael Neumann (mneumann)

documentation

README

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)) });
Commit count: 4

cargo fmt