Expand description
§HTTP Module
This module provides functionality for making HTTP requests with optional proxy support. It includes features for handling timeouts, error conversions, and response validation.
§Components
- Requestor - A struct for making HTTP requests with or without proxy support
§Examples
use gooty_proxy::io::http::Requestor;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let requestor = Requestor::new()?;
let response = requestor.get("https://example.com", "Mozilla/5.0").await?;
println!("Response: {}", response);
Ok(())
}Structs§
- Requestor
- Simple HTTP requestor with optional proxy support.