yii\httpclient\Client::head PHP Method

head() public method

Creates 'HEAD' request.
public head ( string $url, array $headers = [], array $options = [] ) : Request
$url string target URL.
$headers array request headers.
$options array request options.
return Request request instance.
    public function head($url, $headers = [], $options = [])
    {
        return $this->createRequestShortcut('head', $url, null, $headers, $options);
    }