easy_http_proxy_server/lib.rs
1//! A simple HTTP forward proxy server library built with Tokio
2//!
3//! This library provides a lightweight HTTP/HTTPS proxy server implementation
4//! with connection pooling support for improved performance.
5//!
6//! # Examples
7//!
8//! ```no_run
9//! use easy_http_proxy_server::{ProxyServer, ProxyConfig};
10//! use std::net::SocketAddr;
11//!
12//! #[tokio::main]
13//! async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
14//! let config = ProxyConfig {
15//! addr: "127.0.0.1:3128".parse()?,
16//! verbose: true,
17//! };
18//!
19//! let server = ProxyServer::new(config);
20//! server.run().await?;
21//! Ok(())
22//! }
23//! ```
24
25mod server;
26mod connection;
27mod pool;
28mod error;
29
30pub use server::{ProxyServer, ProxyConfig};
31pub use error::ProxyError;
32pub use pool::ConnectionPool;
33
34pub type Result<T> = std::result::Result<T, ProxyError>;