1个稳定版本

1.0.1 2020年1月20日

#7 in #actori

Download history • Rust 包仓库 27/week @ 2024-03-11 • Rust 包仓库 40/week @ 2024-03-18 • Rust 包仓库 48/week @ 2024-03-25 • Rust 包仓库 65/week @ 2024-04-01 • Rust 包仓库 22/week @ 2024-04-08 • Rust 包仓库 30/week @ 2024-04-15 • Rust 包仓库 31/week @ 2024-04-22 • Rust 包仓库 41/week @ 2024-04-29 • Rust 包仓库 26/week @ 2024-05-06 • Rust 包仓库 32/week @ 2024-05-13 • Rust 包仓库 30/week @ 2024-05-20 • Rust 包仓库 20/week @ 2024-05-27 • Rust 包仓库 24/week @ 2024-06-03 • Rust 包仓库 25/week @ 2024-06-10 • Rust 包仓库 19/week @ 2024-06-17 • Rust 包仓库 33/week @ 2024-06-24 • Rust 包仓库

102 每月下载量
11 个crate中使用 (直接使用2个)

MIT/Apache

1MB
20K SLoC

Actori HTTP客户端 构建状态 codecov 加入gitter聊天 https://gitter.im/actori/actori

一个HTTP客户端

文档与社区资源

示例

use actori_rt::System;
use actoriwc::Client;
use futures::future::{Future, lazy};

fn main() {
    System::new("test").block_on(lazy(|| {
       let mut client = Client::default();

       client.get("https://rust-lang.net.cn") // <- Create request builder
          .header("User-Agent", "Actori-web")
          .send()                             // <- Send http request
          .and_then(|response| {              // <- server http response
               println!("Response: {:?}", response);
               Ok(())
          })
    }));
}

依赖项

~29MB
~618K SLoC