在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:seanmonstar/warp开源软件地址:https://github.com/seanmonstar/warp开源编程语言:Rust 100.0%开源软件介绍:warpA super-easy, composable, web server framework for warp speeds. The fundamental building block of Thanks to its
Since it builds on top of hyper, you automatically get:
ExampleAdd warp and Tokio to your dependencies: tokio = { version = "1", features = ["full"] }
warp = "0.3" And then get started in your 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], 3030))
.await;
} For more information you can check the docs or the examples. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论