1个稳定版本

1.0.1 2020年1月20日

#7 in #actori

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

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://www.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