Skip to main content

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 forwarder;
15mod handler;
16mod hyper_ext;
17mod proxy;
18mod types;
19
20pub use backend::{BackendAppManager, LoadBalance, LoadBalanceRandom, LoadBalanceRoundRobin};
21pub use forwarder::ForwarderClient;
22pub use handler::MessageHandler;
23pub use proxy::ProxyService;
24pub use types::{PathName, ProxyError as VendoredError, ServerName};