1 stable release

1.0.1 Jan 20, 2020

#8 in #actori

Download history 8/week @ 2023-12-03 6/week @ 2023-12-10 23/week @ 2023-12-17 9/week @ 2023-12-24 13/week @ 2024-01-07 15/week @ 2024-01-14 4/week @ 2024-01-21 4/week @ 2024-01-28 6/week @ 2024-02-04 16/week @ 2024-02-11 42/week @ 2024-02-18 37/week @ 2024-02-25 24/week @ 2024-03-03 34/week @ 2024-03-10 26/week @ 2024-03-17

123 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
~624K SLoC