Commit 64d57b39 authored by Benjamin Wöster's avatar Benjamin Wöster

add checks for HEAD request

parent d02e7d40
......@@ -154,6 +154,15 @@ class Request extends \yii\base\Request
return $this->getMethod() === 'OPTIONS';
}
/**
* Returns whether this is a HEAD request.
* @return boolean whether this is a HEAD request.
*/
public function getIsHead()
{
return $this->getMethod() === 'HEAD';
}
/**
* Returns whether this is a POST request.
* @return boolean whether this is a POST request.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment