Crate proxy_server
source ·Expand description
Low level proxy server.
To implement request proxying, only standard TcpStream
was used without additional libraries
Examples
With default params:
use proxy_server::Builder;
fn main() {
Builder::new().bind().expect("Error in proxy");
}
With custom params:
use proxy_server::{log::LogLevel, Builder};
fn main() {
Builder::new()
.with_address("127.0.0.1:3000")
.with_target("127.0.0.1:3001")
.with_log_level(LogLevel::Warn)
.with_threads(4)
.bind()
.expect("Error in proxy");
}
Modules
Structs
- Structure for proxy server configuration