Sets the request method.
@api
Parameters
string $method:
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 908
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundation
Code
public function setMethod($method) {
$this->method = null;
$this->server
->set('REQUEST_METHOD', $method);
}