alhc 0.2.2

Async Lightweight HTTP Client: A async http client library that using system library to reduce binary size if possible. (Currently under heavy development)
Documentation
use alhc::prelude::*;
use alhc::*;

use pollster::FutureExt;

fn main() -> DynResult {
    let client = get_client_builder().build().unwrap();
    let data = "Hello World!".repeat(256);

    let r = client
        .post("https://httpbin.org/post")?
        .header("user-agent", "alhc/0.2.0")
        .body_string(data)
        .block_on()?
        .recv_string()
        .block_on()?;

    println!("{r}");

    Ok(())
}