express-rs 0.0.5

Express.js clone written in your favorite language
Documentation
  • Coverage
  • 22.22%
    8 out of 36 items documented1 out of 16 items with examples
  • Size
  • Source code size: 29.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.48 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • garritfra/express-rs
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • garritfra

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.