Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequestInterface.php

function RequestInterface::getMethod

Retrieves the HTTP method of the request.

Return value

string Returns the request method.

1 method overrides RequestInterface::getMethod()
Request::getMethod in vendor/guzzlehttp/psr7/src/Request.php
Retrieves the HTTP method of the request.

File

vendor/psr/http-message/src/RequestInterface.php, line 69

Class

RequestInterface
Representation of an outgoing, client-side request.

Namespace

Psr\Http\Message

Code

public function getMethod() : string;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal