talap

Crates.iotalap
lib.rstalap
version0.1.2
sourcesrc
created_at2022-10-09 15:25:29.722323
updated_at2022-10-09 15:34:15.347365
descriptionEasy to send HTTP/HTTPS requests
homepage
repositoryhttps://gitlab.com/andrew_ryan/talap
max_upload_size
id684052
size54,063
zinso (zinso)

documentation

https://docs.rs/talap

README

Easy to send HTTP/HTTPS requests.

Crates.io Rust license

Example

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();
}

Commit count: 4

cargo fmt