//! The HTTP kernel, like Laravel's `app/Http/Kernel.php`: the one place for
//! middleware. A request goes through `global`, then its route's group (`web`
//! or `api`, chosen in `routes/`), then the controller, and the response comes
//! back out the same way. The framework adds security headers around it all.
//!
//! Middleware is `Fn(&Request, Next) -> Response`; the first one added runs
//! first. `clamp make:middleware NAME` writes one into `http/middleware/`.
use Duration;
use ;
use crateSettings;
/// Middleware every request passes through, static files and `404`s included.
/// Pages with forms: a session (`request.session()`, flash messages, old
/// input) and CSRF checks on every `POST`. The welcome page needs neither, so
/// `routes/web.rs` keeps it outside this group and sets no cookie.
/// JSON endpoints, rate limited per client to `API_PER_MINUTE`.