1 unstable release

0.0.1 Jan 19, 2020

#8 in #scrappy

Download history 29/week @ 2024-03-24 64/week @ 2024-03-31 18/week @ 2024-04-07 24/week @ 2024-04-14 27/week @ 2024-04-21 18/week @ 2024-04-28 19/week @ 2024-05-05 26/week @ 2024-05-12 18/week @ 2024-05-19 27/week @ 2024-05-26 30/week @ 2024-06-02 13/week @ 2024-06-09 17/week @ 2024-06-16 21/week @ 2024-06-23 6/week @ 2024-06-30 7/week @ 2024-07-07

52 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

~21–28MB
~595K SLoC