use zeloxy::{GetRequestOpts, Proxy, ProxyResult, ProxyStream, ProxyType};
#[tokio::main]
async fn main() -> ProxyResult<()> {
let proxy = Proxy::new("91.132.92.231:80", ProxyType::Http);
let stream = ProxyStream::new(proxy);
stream.connect("example.com", 80).await?;
let resp = stream.get_request("example.com", GetRequestOpts::default()).await?;
println!("Ответ от example.com: {}", resp);
Ok(())
}