| Crates.io | cardinal-proxy |
| lib.rs | cardinal-proxy |
| version | 0.2.41 |
| created_at | 2025-09-26 03:15:51.832556+00 |
| updated_at | 2025-11-28 16:44:04.326295+00 |
| description | Pingora-based HTTP proxy implementation for the Cardinal gateway |
| homepage | https://github.com/andrespirela/cardinal |
| repository | https://github.com/andrespirela/cardinal |
| max_upload_size | |
| id | 1855376 |
| size | 153,469 |
Pingora integration for Cardinal. CardinalProxy implements ProxyHttp and delegates request/response processing to the rest of the stack.
CardinalContextProvider: resolves an Arc<CardinalContext> from a Session. The default StaticContextProvider always returns the same context; more advanced deployments can plug in host-aware providers.RequestContext: per-request cache of the resolved context, destination backend, and PluginRunner.PluginRunner::run_request_filters / run_response_filters are invoked at the right phases, so both Rust and WASM middleware can observe or mutate traffic.DestinationContainer selects the backend based on path/host.MiddlewareResult::Responded.Consumers rarely touch this crate directly—Cardinal handles wiring—but understanding it is useful when implementing custom providers or debugging proxy behaviour.