프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$computedCacheControl | array | ||
$cookies | array | ||
$headerNames | array |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | array | An array of headers |
protected computeCacheControlValue ( ) : string | ||
리턴 | string |
public getCookies ( string $format = self::COOKIES_FLAT ) : array | ||
$format | string | |
리턴 | 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 |
리턴 | string | A string suitable for use as a Content-Disposition field-value |