pub struct LoadedRoute {
pub upstream: String,
pub upstream_host_port: Option<String>,
pub endpoint_rules: CompiledEndpointRules,
pub tls_connector: Option<TlsConnector>,
}Expand description
Route-level configuration loaded at proxy startup.
Contains everything needed to forward and filter a request for a route,
but no credential material. Credential injection is handled separately
by CredentialStore.
Fields§
§upstream: StringUpstream URL (e.g., “https://api.openai.com”)
upstream_host_port: Option<String>Pre-normalised host:port extracted from upstream at load time.
Used for O(1) lookups in is_route_upstream() without per-request
URL parsing. None if the upstream URL cannot be parsed.
endpoint_rules: CompiledEndpointRulesPre-compiled L7 endpoint rules for method+path filtering. When non-empty, only matching requests are allowed (default-deny). When empty, all method+path combinations are permitted.
tls_connector: Option<TlsConnector>Per-route TLS connector with custom CA trust, if configured.
Built once at startup from the route’s tls_ca certificate file.
When None, the shared default connector (webpki roots only) is used.