Expand description
Per-realm HTTP dispatcher for connector-service upstreams.
Structs§
- Dispatch
Config - Configuration and realm-to-upstream routing table.
- Hyper
Forwarder - Production forwarder for the connector router.
- Router
State - Shared state for router dispatch handlers.
Enums§
- Dispatch
Config Error - Dispatch configuration validation and lookup errors.
- Forward
Error - Errors returned by the concrete forwarder implementation.
Traits§
- Forwarder
- Forward one fully-rewritten upstream request.
Functions§
- dispatch_
by_ host - Dispatch by realm extracted from
Hostheader (<realm>.connector.<domain_suffix>). - dispatch_
by_ path - Dispatch by realm extracted from URL path (
/{realm}). - dispatch_
to_ realm - Dispatch a request to the upstream for the given realm.
- router
- Build the axum router for dispatching incoming requests.
Type Aliases§
- Forward
Future - Future type returned by
Forwarderimplementations.