You are here

public function Request::setMethod in RESTful 7.2

Set the HTTP method.

Parameters

string $method: The method to set.

Overrides RequestInterface::setMethod

File

src/Http/Request.php, line 497
Contains \Drupal\restful\Http\Request

Class

Request
Deals with everything coming from the consumer.

Namespace

Drupal\restful\Http

Code

public function setMethod($method) {
  $this->method = strtoupper($method);
}