pub fn install(router: Router, reflector: Reflector) -> RouterExpand description
Register both protocol versions (v1 and v1alpha) on a router.
This is the recommended setup: clients probe v1 first and fall back
to v1alpha, so serving both maximizes compatibility at the cost of
two route entries backed by the same index.
Unlike connectrpc_health::install_static, no handle is returned:
a Reflector is immutable once built, so there is nothing to flip
at runtime. Both routes are set to request_limits (16 KiB per
request message) via apply_request_limits, which replaces the
service-wide limits on those routes even when they are tighter; to tune
them, call apply_request_limits(router, yours) on the returned router —
the later call wins.