Unirest\Request::head PHP Method

head() public static method

Send a HEAD request to a URL
public static head ( string $url, array $headers = [], mixed $parameters = null, string $username = null, string $password = null ) : unirest\Response
$url string URL to send the HEAD request to
$headers array additional headers to send
$parameters mixed parameters to send in the querystring
$username string Basic Authentication username (deprecated)
$password string Basic Authentication password (deprecated)
return unirest\Response
    public static function head($url, $headers = array(), $parameters = null, $username = null, $password = null)
    {
        return self::send(Method::HEAD, $url, $parameters, $headers, $username, $password);
    }