예제 #1
0
 /**
  * Check if server request is secure (https) or not.
  *
  * @return bool
  */
 public function isSecure()
 {
     $https = $this->server->get('HTTPS');
     return false === empty($https) && 'off' !== strtolower($https);
 }
예제 #2
0
 /**
  * Get request uri.
  *
  * @return string
  */
 public function getRequestUri()
 {
     return $this->server->get('REQUEST_URI', '');
 }
예제 #3
0
파일: Request.php 프로젝트: vectrex/vxphp
 private function isFromTrustedProxy()
 {
     return self::$trustedProxies && IpUtils::checkIp($this->server->get('REMOTE_ADDR'), self::$trustedProxies);
 }