5 releases (3 breaking)

0.4.0 Nov 1, 2024
0.3.0 Jul 12, 2024
0.2.0 May 10, 2024
0.1.1 Apr 18, 2024
0.1.0 Feb 28, 2024

#2060 in Network programming

Download history 6369/week @ 2024-10-01 4991/week @ 2024-10-08 6359/week @ 2024-10-15 6466/week @ 2024-10-22 10479/week @ 2024-10-29 11305/week @ 2024-11-05 8679/week @ 2024-11-12 14063/week @ 2024-11-19 15347/week @ 2024-11-26 10216/week @ 2024-12-03 13673/week @ 2024-12-10 10107/week @ 2024-12-17 4942/week @ 2024-12-24 6116/week @ 2024-12-31 9293/week @ 2025-01-07 9471/week @ 2025-01-14

30,379 downloads per month
Used in 21 crates (12 directly)

Apache-2.0

1.5MB
26K SLoC

pingora-proxy

Programmable HTTP proxy built on top of [pingora_core].

Features

  • HTTP/1.x and HTTP/2 for both downstream and upstream
  • Connection pooling
  • TLSv1.3, mutual TLS, customizable CA
  • Request/Response scanning, modification or rejection
  • Dynamic upstream selection
  • Configurable retry and failover
  • Fully programmable and customizable at any stage of a HTTP request

How to use

Users of this crate defines their proxy by implementing [ProxyHttp] trait, which contains the callbacks to be invoked at each stage of a HTTP request.

Then the service can be passed into [http_proxy_service()] for a pingora_core::server::Server to run it.

See examples/load_balancer.rs for a detailed example.

Dependencies

~28–53MB
~1M SLoC