Checks if the request method is of specified type.
string $method Uppercase request method (GET, POST etc).:
Boolean
public function isMethod($method) { return $this ->getMethod() === strtoupper($method); }