pub fn request_scheme(request: &Request, peer: &str, tls: bool) -> &'static strExpand description
client_ip with the trust list and mode given (no config read).
The scheme the client used: https on a TLS connection; behind a
trusted proxy that terminates TLS (trusted_proxies, unless
client_ip = "peer"), what it says in X-Forwarded-Proto (its first
value) or else Forwarded: proto=; http otherwise. For URLs rws hands
back to the client (an agent card, an OAuth redirect URI) and the
Secure cookie flag: behind a TLS-terminating load balancer the
connection itself is plain HTTP.