just_serve_it 1.0.0

A lightweight and multithreaded backend web-framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{request::Request, routes::Router};
use std::io::Result;

pub mod body_parser;
pub mod serve;

#[allow(unused)]
pub use body_parser::BodyParser;

#[allow(unused)]
pub use serve::ServeStatic;

pub trait Middleware: Send + Sync {
    fn handle(&self, routes: &mut Router, req: &mut Request) -> Result<()>;
}