GitHub 火線榜

GitHub 火線榜 · 倉庫檔案

seanmonstar/warp

A super-easy, composable, web server framework for warp speeds. (簡介來自倉庫自身文件。)

資料截至 October 27seanmonstar

最好成績

#267

總榜 · Rust 语言

10K

累計 Star

747

Fork 總數

0

近 30 天在榜天數

專案狀態授權條款: MIT最近 push: July 28Open Issues(含 PR): 234

自 2026-10-25 起採集;未知 = 尚未採集到

把上榜徽章放進你的 README · seanmonstar/warp[![把上榜徽章放進你的 README](https://git.vaiox.xyz/api/badge/seanmonstar/warp.svg)](https://git.vaiox.xyz/zh-TW/repo/seanmonstar/warp)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/zh-TW/repo/seanmonstar/warp"><img src="https://git.vaiox.xyz/api/badge/seanmonstar/warp.svg" alt="把上榜徽章放進你的 README" height="20"></a>

專案文件

warp

crates.io Released API docs MIT licensed GHA Build Status Discord chat

A super-easy, composable, web server framework for warp speeds.

The fundamental building block of warp is the Filter: they can be combined and composed to express rich requirements on requests.

Thanks to its Filter system, warp provides these out of the box:

  • Path routing and parameter extraction
  • Header requirements and extraction
  • Query string deserialization
  • JSON and Form bodies
  • Multipart form data
  • Static Files and Directories
  • Websockets
  • Access logging
  • Gzip, Deflate, and Brotli compression

Since it builds on top of hyper, you automatically get:

  • HTTP/1
  • HTTP/2
  • Asynchronous
  • One of the fastest HTTP implementations
  • Tested and correct

Example

Add warp and Tokio to your dependencies:

tokio = { version = "1", features = ["full"] }
warp = { version = "0.4", features = ["server"] }

And then get started in your main.rs:

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.

當前上榜

近 30 天勢頭

近 30 天沒有上榜紀錄。

同一作者的其它上榜專案

同類專案 · 共享主題

← 回到榜單