Crates.io | talap |
lib.rs | talap |
version | 0.1.2 |
source | src |
created_at | 2022-10-09 15:25:29.722323 |
updated_at | 2022-10-09 15:34:15.347365 |
description | Easy to send HTTP/HTTPS requests |
homepage | |
repository | https://gitlab.com/andrew_ryan/talap |
max_upload_size | |
id | 684052 |
size | 54,063 |
use talap::Request;
#[tokio::main]
async fn main() {
use std::io::Write;
let response = Request::get_from_url("https://www.apple.com/")
.await
.unwrap()
.send()
.await
.unwrap();
println!("{}", response.status_code);
println!("{:?}", response.headers);
std::io::stdout().write_all(&response.body).unwrap();
}