Checks whether the request is secure or not.
@api
Boolean
public function isSecure() {
return strtolower($this->server
->get('HTTPS')) == 'on' || $this->server
->get('HTTPS') == 1 || (self::$trustProxy && strtolower($this->headers
->get('SSL_HTTPS')) == 'on' || $this->headers
->get('SSL_HTTPS') == 1) || self::$trustProxy && strtolower($this->headers
->get('X_FORWARDED_PROTO')) == 'https';
}