chore: reorg

This commit is contained in:
2020-10-17 11:50:52 +08:00
parent bb6762ab81
commit 9b6fb8b292
4 changed files with 0 additions and 0 deletions

13
__web/warp/src/main.rs Normal file
View File

@@ -0,0 +1,13 @@
use warp::Filter;
#[tokio::main]
async fn main() {
// GET /hello/warp => 200 OK with body "Hello, warp!"
let hello = warp::path!("hello" / String)
.map(|name| format!("Hello, {}!", name));
warp::serve(hello)
.run(([127, 0, 0, 1], 8080))
.await;
}