Skip to main content

build_rpc_op_resolver_with_prefix

Function build_rpc_op_resolver_with_prefix 

Source
pub fn build_rpc_op_resolver_with_prefix(
    prefix: &str,
    ops: &'static [OpDescriptor],
) -> impl Fn(&Request<Body>) + Send + Sync
Expand description

build_rpc_op_resolver for a router mounted under prefix, e.g. build_rpc_op_resolver_with_prefix("/api", OPS) to match Router::nest("/api", router).

Same forgiving-spelling / strict-boundary rules as the REST twin.