コード例 #1
0
ファイル: Http.class.php プロジェクト: eric-burel/twentyparts
 public static function isPost()
 {
     return Method::isPost(self::getServer('REQUEST_METHOD'));
 }
コード例 #2
0
 public function setRequireHttpMethod($requireHttpMethod)
 {
     if (!is_null($requireHttpMethod) && !Method::isValid($requireHttpMethod)) {
         throw new \Exception('Route requireHttpMethod parameter must null or a valid HTTP METHOD');
     }
     $this->_requireHttpMethod = $requireHttpMethod;
 }