You are here

public function Request::isMethodSafe in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::isMethodSafe()

Checks whether the method is safe or not.

Return value

bool

File

vendor/symfony/http-foundation/Request.php, line 1462

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function isMethodSafe() {
  return in_array($this
    ->getMethod(), array(
    'GET',
    'HEAD',
  ));
}