1 stable release

1.0.1 Jan 20, 2020

#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 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

~29MB
~618K SLoC