Skip to main content

Module vendored

Module vendored 

Source
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§

BackendAppManager
Backend application manager (adapted from rpxy backend_main.rs).
ForwarderClient
Forwarder client for sending requests to upstream backends.
LoadBalanceRandom
Random load balancer (from rpxy load_balance_main.rs).
LoadBalanceRoundRobin
Round-robin load balancer (from rpxy load_balance_main.rs).
MessageHandler
Message handler for request/response manipulation.
PathName
Path name matching with longest-prefix support (adapted from rpxy name_exp.rs).
ProxyService
Proxy service that handles incoming HTTP connections.
ServerName
Server name matching (adapted from rpxy name_exp.rs).

Enums§

LoadBalance
Load balancer enum (adapted from rpxy).
VendoredError
Vendored error type (adapted from rpxy error.rs).