You are here

public function Request::getMethod in RESTful 7.2

Get the HTTP method.

Return value

string

Overrides RequestInterface::getMethod

File

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

Class

Request
Deals with everything coming from the consumer.

Namespace

Drupal\restful\Http

Code

public function getMethod() {
  return $this->method;
}