A reverse proxy and API gateway plugin for the Hyperlane framework with load balancing, path-prefix routing, token-bucket rate limiting, circuit breaking, RFC 9110 hop-by-hop header stripping, and pooled HTTP/1.1 + HTTP/2 upstream forwarding.
/// Upstream selection algorithm used by a [`crate::GatewayRoute`].
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]pubenumLoadBalanceStrategy{/// Cycles evenly through healthy upstreams.
#[default]
RoundRobin,/// Selects the healthy upstream with the fewest active in-flight requests.
LeastConnections,/// Distributes requests proportionally to each [`crate::UpstreamTarget`]'s weight.
WeightedRoundRobin,/// Picks two candidate upstreams and selects the one with fewer active connections (`O(1)`).
PowerOfTwoChoices,}