1 unstable release
0.0.1 | Jan 19, 2020 |
---|
#7 in #scrappy
40 downloads per month
Used in 9 crates
(2 directly)
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
~32MB
~650K SLoC