https://github.com/chen-dk/puzz
A simple and powerful web framework.
https://github.com/chen-dk/puzz
async framework http rust
Last synced: 9 months ago
JSON representation
A simple and powerful web framework.
- Host: GitHub
- URL: https://github.com/chen-dk/puzz
- Owner: chen-dk
- License: mit
- Created: 2022-05-17T04:06:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T06:21:36.000Z (over 3 years ago)
- Last Synced: 2025-04-30T12:07:03.996Z (9 months ago)
- Topics: async, framework, http, rust
- Language: Rust
- Homepage:
- Size: 45.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Puzz
一个简单且强大的网络框架
## 例子
```rust
use puzz::{service_fn, Server};
#[tokio::main]
async fn main() {
Server::new(|| service_fn(|_| async { Ok("Hello, World!!!") }))
.bind(([127, 0, 0, 1], 80))
.run()
.await
.unwrap();
}
```