#web #http #routing #puzz

puzz-route

Matches incoming HTTP requests and dispatches them to the service for processing

1 unstable release

0.1.0 May 17, 2022

#8 in #puzz

21 downloads per month
Used in puzz

MIT license

21KB
527 lines

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

~1.5MB
~26K SLoC