1 stable release

1.0.1 Jan 20, 2020

36 downloads per month
Used in 11 crates (2 directly)

MIT/Apache

1MB
20K SLoC

Actori http client Build Status codecov Join the chat at https://gitter.im/actori/actori

An HTTP Client

Documentation & community resources

Example

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("http://www.rust-lang.org") // <- Create request builder
          .header("User-Agent", "Actori-web")
          .send()                             // <- Send http request
          .and_then(|response| {              // <- server http response
               println!("Response: {:?}", response);
               Ok(())
          })
    }));
}

Dependencies

~24–32MB
~637K SLoC