Expand description
Vendored proxy logic from rust-rpxy.
This module contains adapted code from rpxy-lib for the core proxy functionality:
- HTTP/1.1 and HTTP/2 request handling
- Upstream forwarding
- Load balancing (round-robin, random, sticky)
- Header manipulation (X-Forwarded-*, Host rewriting)
- Hyper body types and utilities
The original code is from: https://github.com/junkurihara/rust-rpxy Licensed under MIT License.
Structs§
- Backend
AppManager - Backend application manager (adapted from rpxy backend_main.rs).
- Forwarder
Client - Forwarder client for sending requests to upstream backends.
- Load
Balance Random - Random load balancer (from rpxy load_balance_main.rs).
- Load
Balance Round Robin - Round-robin load balancer (from rpxy load_balance_main.rs).
- Message
Handler - Message handler for request/response manipulation.
- Path
Name - Path name matching with longest-prefix support (adapted from rpxy name_exp.rs).
- Proxy
Service - Proxy service that handles incoming HTTP connections.
- Server
Name - Server name matching (adapted from rpxy name_exp.rs).
Enums§
- Load
Balance - Load balancer enum (adapted from rpxy).
- Vendored
Error - Vendored error type (adapted from rpxy error.rs).