public function Request::isMethodSafe in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\HttpFoundationCode
public function isMethodSafe() {
return in_array($this
->getMethod(), array(
'GET',
'HEAD',
));
}