Class CacheControl
Provides helpful functionality for Cache-Control headers
- Guzzle\Http\Message\Header implements Guzzle\Http\Message\Header\HeaderInterface
-
Guzzle\Http\Message\Header\CacheControl
Methods summary
-
publicadd ( string $value )Add a value to the list of header values
-
publicremoveValue ( string $searchValue )Remove a specific value from the header
-
publichasDirective ( string $param )Check if a specific cache control directive exists
-
publicgetDirective ( string $param )Get a specific cache control directive
-
publicaddDirective ( string $param, string $value )Add a cache control directive
-
publicremoveDirective ( string $param )Remove a cache control directive by name
-
publicgetDirectives ( )Get an associative array of cache control directives
-
protectedupdateFromDirectives ( array $directives )Updates the header value based on the parsed directives
Methods detail
Add a value to the list of header values
Parameters
- $value
string
$value Value to add to the header
Returns
Overrides
Remove a specific value from the header
Parameters
- $searchValue
string
$searchValue Value to remove
Returns
Overrides
Check if a specific cache control directive exists
Parameters
- $param
string
$param Directive to retrieve
Returns
booleanGet a specific cache control directive
Parameters
- $param
string
$param Directive to retrieve
Returns
string|boolean|nullAdd a cache control directive
Parameters
- $param
string
$param Directive to add- $value
string
$value Value to set
Returns
Remove a cache control directive by name
Parameters
- $param
string
$param Directive to remove
Returns
Get an associative array of cache control directives
Returns
arrayUpdates the header value based on the parsed directives
Parameters
- $directives
array
$directives Array of cache control directives
Methods inherited from Guzzle\Http\Message\Header
__construct(),
__toString(),
count(),
getGlue(),
getIterator(),
getName(),
hasValue(),
normalize(),
parseParams(),
setGlue(),
setName(),
toArray(),
trimHeader()
Magic methods summary
Properties summary
protected
array
|
$directives |