Checks whether the method is safe or not.
@api
Return value
Boolean
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 1301
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundation
Code
public function isMethodSafe() {
return in_array($this
->getMethod(), array(
'GET',
'HEAD',
));
}