public static function isPost() { return Method::isPost(self::getServer('REQUEST_METHOD')); }
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; }