requiem-wc

Crates.iorequiem-wc
lib.rsrequiem-wc
version1.0.1-r1
sourcesrc
created_at2020-01-18 02:26:29.469475
updated_at2020-01-18 20:58:15.894
descriptionActix http client.
homepagehttps://actix.rs
repositoryhttps://github.com/actix/actix-web.git
max_upload_size
id199625
size145,261
enzious (enzious)

documentation

https://docs.rs/requiem-wc/

README

Actix http client Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix

An HTTP Client

Documentation & community resources

Example

use requiem_rt::System;
use requiem_wc::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", "Actix-web")
          .send()                             // <- Send http request
          .and_then(|response| {              // <- server http response
               println!("Response: {:?}", response);
               Ok(())
          })
    }));
}
Commit count: 4348

cargo fmt