Skip to content

garritfra/express-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

59 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

express-rs

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

https://crates.io/crates/express-rs

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 directory 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.

About

A simple express-inspired web framework written in your favorite programming languagešŸ¦€

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages