Skip to main content

relay_core_lib/proxy/
mod.rs

1//! Proxy module
2//!
3//! This module handles the core proxy server logic.
4//!
5//! Responsibilities:
6//! - `server`: Entry point (`start_proxy`) and main connection loop (accepts connections, spawns handlers).
7//! - `http`: HTTP-specific handling (request parsing, MITM, request/response modification).
8//! - `tunnel`: HTTP CONNECT tunnel handling (blind TCP forwarding or MITM upgrade).
9//! - `websocket`: WebSocket framing, message interception, and forwarding.
10//! - `body_codec`: Handling of HTTP body streams (decompression, buffering for inspection).
11//! - `tap`: Tapping body streams for UI updates.
12//! - `outbound`: Outbound connector abstraction (direct / upstream proxy).
13
14pub mod body_codec;
15pub mod budget;
16pub mod circuit_breaker;
17pub mod http;
18pub mod http_utils;
19pub mod outbound;
20pub mod server;
21pub mod tap;
22pub mod throttle;
23pub mod tunnel;
24pub mod websocket;
25
26pub use server::start_proxy;