Expand description
Service registry for route resolution
This module provides a production-ready ServiceRegistry for mapping incoming
requests to backend services based on host patterns (including wildcards) and
path prefixes. Routes are stored in longest-prefix-first order so that
resolve() returns the most specific match in O(n).
Structs§
- Resolved
Service - Fully-resolved service information returned by the registry.
- Route
Entry - A single route entry in the registry.
- Service
Registry - Production-ready service registry for the
ZLayerreverse proxy.
Functions§
- transform_
path - Transform
pathby optionally strippingprefix.