1 unstable release

0.0.1 Jan 19, 2020

#7 in #scrappy

Download history 12/week @ 2024-02-09 28/week @ 2024-02-16 30/week @ 2024-02-23 28/week @ 2024-03-01 30/week @ 2024-03-08 25/week @ 2024-03-15 26/week @ 2024-03-22 62/week @ 2024-03-29 22/week @ 2024-04-05 25/week @ 2024-04-12 23/week @ 2024-04-19 23/week @ 2024-04-26 19/week @ 2024-05-03 26/week @ 2024-05-10 18/week @ 2024-05-17 19/week @ 2024-05-24

86 downloads per month
Used in 9 crates (2 directly)

MIT license

1MB
27K SLoC

An HTTP Client

use futures::future::{lazy, Future};
use scrappy_rt::System;
use scrappy_client::Client;

#[scrappy_rt::main]
async fn main() {
   let mut client = Client::default();

   let response = client.get("http://www.rust-lang.org") // <- Create request builder
       .header("User-Agent", "scrappy-web")
       .send()                             // <- Send http request
       .await;

    println!("Response: {:?}", response);
}

Dependencies

~29MB
~621K SLoC