scheme method

String scheme()

http or https. It is https when the server has AppConfig.tls. Behind a proxy listed in trustedProxies this comes from X-Forwarded-Proto.

req.scheme();

Implementation

String scheme() {
  return _scheme;
}