5 releases

0.1.0 Aug 27, 2020
0.0.5 Sep 20, 2020
0.0.2 Aug 28, 2020

#10 in #favorite

MIT/Apache

12KB
217 lines

express-rs

This crate emulates the behavior of the Express.js framework for Rust.

State of the Project

  • Simple GET/POST/PUT/DELETE requests
  • Body parsing
  • Status codes
  • Header parsing
  • proper HTML rendering
  • Dynamic query and route params
  • Multithreading

Example

See ./examples for more examples

use express_rs::Express;

fn main() {
    let mut app = Express::new();

    app.get("/", |_, res| res.send("Hello World!".to_string()));

    app.listen(8080);
}

License

This project is licensed under either of

at your option.

No runtime deps