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