Esempio n. 1
0
File: php.php Progetto: xpd1437/swap
 public static function method($method)
 {
     if (visitor::method() !== strtoupper($method)) {
         $except = new visitor_except('method not allowed', 405);
         $except->set_value('allow_list', $method);
         throw $except;
     }
 }