#puzz #http #web

puzz-http

A set of types for representing HTTP requests and responses

1 unstable release

0.1.0 May 17, 2022

#2 in #puzz


Used in 6 crates (via puzz-core)

MIT license

58KB
1K SLoC

Puzz

一个简单且强大的网络框架

例子

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();
}

Dependencies

~705KB
~11K SLoC