$values
$values :
Provides helpful functionality for Cache-Control headers
parseParams() : array
Parse a header containing ";" separated data into an array of associative arrays representing the header key value pair data of the header. When a parameter does not contain a value, but just contains a key, this function will inject a key with a '' string value.
codeCoverageIgnore |
---|
hasDirective(string $param) : boolean
Check if a specific cache control directive exists
string | $param | Directive to retrieve |
None found |
getDirective(string $param) : string|boolean|null
Get a specific cache control directive
string | $param | Directive to retrieve |
None found |
addDirective(string $param, string $value) : self
Add a cache control directive
string | $param | Directive to add |
string | $value | Value to set |
None found |
removeDirective(string $param) : self
Remove a cache control directive by name
string | $param | Directive to remove |
None found |
getDirectives() : array
Get an associative array of cache control directives
None found |
trimHeader( $str) : string
Trim a header by removing excess spaces and wrapping quotes
$str |
None found |
updateFromDirectives(array $directives)
Updates the header value based on the parsed directives
array | $directives | Array of cache control directives |
None found |