You are here

public static function RequestInterface::isValidMethod in RESTful 7.2

Determines if the HTTP method is one of the known methods.

Parameters

string $method: The method name.

Return value

boolean TRUE if it is a known method. FALSE otherwise.

1 method overrides RequestInterface::isValidMethod()
Request::isValidMethod in src/Http/Request.php
Determines if the HTTP method is one of the known methods.

File

src/Http/RequestInterface.php, line 95
Contains \Drupal\restful\Http\RequestInterface.

Class

RequestInterface

Namespace

Drupal\restful\Http

Code

public static function isValidMethod($method);