async fn claim(
services: &Services,
method: &Method,
uri: &Uri,
) -> Option<(Root, RegistrationInfo)>Expand description
The API and registration a request is proxied to.
Every method but TRACE qualifies, since the MSC forwards any authenticated
request under a claim, while a TRACE must carry no credential its echo could
disclose (RFC 9110 ยง9.3.8) and the forwarded request carries the hs_token.
A path qualifies when an appservice validly claims its remainder after the
version.