Sets the HTTP methods (e.g. 'POST') all child routes are restricted to.
string|array $methods The method or an array of methods:
public function setMethods($methods) {
foreach ($this->routes as $route) {
$route
->setMethods($methods);
}
}