ProCacheTests::urlHeaders() method

Return all response headers for given URL

Usage

// basic usage
$array = $tests->urlHeaders(string $url);

// usage with all arguments
$array = $tests->urlHeaders(string $url, bool $requireCURL = false);

Arguments

NameType(s)Description
$urlstring

URL get get response headers for

$requireCURL (optional)bool

Require this test to use CURL rather than other WireHttp methods? Default:false

Return value

array

Array of HTTP headers


$tests methods and properties

API reference based on ProcessWire core version 3.0.252