express-rs

Crates.ioexpress-rs
lib.rsexpress-rs
version0.0.5
sourcesrc
created_at2020-08-27 13:29:11.34583
updated_at2020-09-20 19:22:48.780644
descriptionExpress.js clone written in your favorite language
homepage
repositoryhttps://github.com/garritfra/express-rs/
max_upload_size
id281441
size29,591
Garrit Franke (garritfra)

documentation

README

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.

Commit count: 59

cargo fmt