Skip to main content

Crate philharmonic_connector_router

Crate philharmonic_connector_router 

Source
Expand description

Per-realm HTTP dispatcher for connector-service upstreams.

Structs§

DispatchConfig
Configuration and realm-to-upstream routing table.
HyperForwarder
Production forwarder for the connector router.
RouterState
Shared state for router dispatch handlers.

Enums§

DispatchConfigError
Dispatch configuration validation and lookup errors.
ForwardError
Errors returned by the concrete forwarder implementation.

Traits§

Forwarder
Forward one fully-rewritten upstream request.

Functions§

dispatch_by_host
Dispatch by realm extracted from Host header (<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§

ForwardFuture
Future type returned by Forwarder implementations.