Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garritfra/express-rs
A simple express-inspired web framework written in your favorite programming language🦀
https://github.com/garritfra/express-rs
rust web-framework
Last synced: 29 days ago
JSON representation
A simple express-inspired web framework written in your favorite programming language🦀
- Host: GitHub
- URL: https://github.com/garritfra/express-rs
- Owner: garritfra
- License: apache-2.0
- Created: 2020-08-26T20:16:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T13:50:42.000Z (about 4 years ago)
- Last Synced: 2024-08-11T08:29:10.068Z (5 months ago)
- Topics: rust, web-framework
- Language: Rust
- Homepage:
- Size: 43 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# express-rs
This crate emulates the behavior of the Express.js framework for Rust.
https://crates.io/crates/express-rs
## State of the Project
- [x] Simple GET/POST/PUT/DELETE requests
- [x] Body parsing
- [x] Status codes
- [x] Header parsing
- [ ] proper HTML rendering
- [ ] Dynamic query and route params
- [ ] Multithreading## Example
See `examples` directory for more examples
```rust
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
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.