postrust_proxy/vendored/mod.rs
1//! Vendored proxy logic from rust-rpxy.
2//!
3//! This module contains adapted code from rpxy-lib for the core proxy functionality:
4//! - HTTP/1.1 and HTTP/2 request handling
5//! - Upstream forwarding
6//! - Load balancing (round-robin, random, sticky)
7//! - Header manipulation (X-Forwarded-*, Host rewriting)
8//! - Hyper body types and utilities
9//!
10//! The original code is from: https://github.com/junkurihara/rust-rpxy
11//! Licensed under MIT License.
12
13mod backend;
14mod conn;
15mod forwarder;
16mod handler;
17mod hyper_ext;
18mod proxy;
19mod types;
20
21pub use backend::{BackendAppManager, LoadBalance, LoadBalanceRandom, LoadBalanceRoundRobin};
22pub use forwarder::ForwarderClient;
23pub use handler::MessageHandler;
24pub use proxy::ProxyService;
25pub use types::{PathName, ProxyError as VendoredError, ServerName};