1 unstable release

0.0.1 Jan 19, 2020

#8 in #scrappy

Download history 3/week @ 2023-12-10 11/week @ 2023-12-17 3/week @ 2023-12-24 10/week @ 2024-01-07 6/week @ 2024-01-14 3/week @ 2024-01-21 5/week @ 2024-02-04 16/week @ 2024-02-11 24/week @ 2024-02-18 38/week @ 2024-02-25 26/week @ 2024-03-03 24/week @ 2024-03-10 28/week @ 2024-03-17 24/week @ 2024-03-24

108 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
~617K SLoC