is() public static method

To check the request Method
public static is ( string $method = "POST" )
$method string
Exemplo n.º 1
0
 /**
  * Bool if the request method is a GET
  * @return bool
  */
 public function isGet()
 {
     return Http\Request::is("GET");
 }