pub(crate) fn request_authority<'a>(
uri: &'a Uri,
headers: &'a HeaderMap,
) -> Option<&'a str>Expand description
The authority a request names, however its protocol version spells it.
HTTP/1.1 carries it in Host. HTTP/2 carries it as the :authority
pseudo-header, which arrives in the request URI and never as a header —
so a route that picks an account by hostname reads both, or answers only
the callers that spoke the older version. This server offers both over
TLS.