Skip to main content

route_paths

Function route_paths 

Source
pub fn route_paths(
    pool: &DescriptorPool,
    aliases: &[AliasConfig],
    selection: &RpcSelection,
) -> Vec<(String, String)>
Expand description

The axum paths routes_with_options would register for this pool, aliases and selection.

Mirrors the registration (every binding of every selected unary and server-streaming RPC, and their config aliases) without building handlers, so callers can detect route collisions before mounting additional routes (e.g. a forward-auth endpoint).

Each entry is (method, path) where method is the uppercase HTTP token, or * for a custom rule that answers every method, so callers can distinguish same-path/different-method routes from real conflicts.