bolt-web 0.2.3

⚡ A high-performance, minimalist web framework for Rust, inspired by Express.js and Gin.
Documentation
1
2
3
4
5
6
7
use crate::{bolt_middleware, request::RequestBody, response::ResponseWriter};

pub async fn logger(req: &mut RequestBody, _res: &mut ResponseWriter) {
    req.log = true;
}

bolt_middleware!(logger);