public function Request::getRealMethod

Gets the "real" request method.

Return value

string The request method

See also

getMethod

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 1128

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getRealMethod() {
  return strtoupper($this->server
    ->get('REQUEST_METHOD', 'GET'));
}