Свойство | Type | Description | |
---|---|---|---|
$computedCacheControl | array | ||
$cookies | array | ||
$headerNames | array |
Méthode | Description | |
---|---|---|
__construct ( array $headers = [] ) | Constructor. | |
all ( ) | ||
allPreserveCase ( ) : array | Returns the headers, with original capitalizations. | |
allPreserveCaseWithoutCookies ( ) | ||
clearCookie ( string $name, string $path = '/', string $domain = null, boolean $secure = false, boolean $httpOnly = true ) | Clears a cookie in the browser. | |
getCacheControlDirective ( $key ) | ||
getCookies ( string $format = self::COOKIES_FLAT ) : array | Returns an array with all cookies. | |
hasCacheControlDirective ( $key ) | ||
makeDisposition ( string $disposition, string $filename, string $filenameFallback = '' ) : string | Generates a HTTP Content-Disposition field-value. | |
remove ( $key ) | ||
removeCookie ( string $name, string $path = '/', string $domain = null ) | Removes a cookie from the array, but does not unset it in the browser. | |
replace ( array $headers = [] ) | ||
set ( $key, $values, $replace = true ) | ||
setCookie ( |
Sets a cookie. |
Méthode | Description | |
---|---|---|
computeCacheControlValue ( ) : string | Returns the calculated value of the cache-control header. |
public __construct ( array $headers = [] ) | ||
$headers | array | An array of HTTP headers |
public allPreserveCase ( ) : array | ||
Résultat | array | An array of headers |
protected computeCacheControlValue ( ) : string | ||
Résultat | string |
public getCookies ( string $format = self::COOKIES_FLAT ) : array | ||
$format | string | |
Résultat | array |
public makeDisposition ( string $disposition, string $filename, string $filenameFallback = '' ) : string | ||
$disposition | string | One of "inline" or "attachment" |
$filename | string | A unicode string |
$filenameFallback | string | A string containing only ASCII characters that is semantically equivalent to $filename. If the filename is already ASCII, it can be omitted, or just copied from $filename |
Résultat | string | A string suitable for use as a Content-Disposition field-value |