Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juri-web/juri
Web Framework
https://github.com/juri-web/juri
juri rust web
Last synced: 7 days ago
JSON representation
Web Framework
- Host: GitHub
- URL: https://github.com/juri-web/juri
- Owner: juri-web
- License: mit
- Created: 2022-07-19T00:58:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-29T14:07:03.000Z (over 1 year ago)
- Last Synced: 2024-10-29T22:25:54.436Z (12 days ago)
- Topics: juri, rust, web
- Language: Rust
- Homepage: https://juri-web.github.io/juri
- Size: 1.26 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Juri
HTTP Framework
## Getting Started
Please refer to [Juri Document](https://juri-web.github.io/juri)
## Example
```
cargo add juri
cargo add async-std
``````rust
use juri::{Request, Response, Router, handler};
use std::net::SocketAddr;#[handler]
fn handle_index(_request: &Request) -> juri::Result {
Ok(Response::html("Hello Juri"))
}#[juri::main]
async fn main() {
let mut router = Router::new();
router.at("/").get(handle_index);let addr = SocketAddr::from(([127, 0, 0, 1], 7878));
juri::Server::bind(addr).server(router).await.unwrap();
}
```## License
[MIT](./LICENSE) License