Sets the HTTP method.
@api
Parameters
string $method The HTTP method:
File
- drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php, line 138
Class
- RequestContext
- Holds information about the current request.
Namespace
Symfony\Component\Routing
Code
public function setMethod($method) {
$this->method = strtoupper($method);
}