1 stable release

1.0.1 Jan 20, 2020

#7 in #actori

Download history 18/week @ 2023-12-18 9/week @ 2023-12-25 17/week @ 2024-01-08 15/week @ 2024-01-15 4/week @ 2024-01-29 6/week @ 2024-02-05 21/week @ 2024-02-12 39/week @ 2024-02-19 44/week @ 2024-02-26 23/week @ 2024-03-04 27/week @ 2024-03-11 40/week @ 2024-03-18 48/week @ 2024-03-25 65/week @ 2024-04-01

188 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
~625K SLoC