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
public
Guzzle\Http\Message\Header\CacheControl
|
#
add( string $value )
Add a value to the list of header values
Add a value to the list of header values
Parameters
- $value
- Value to add to the header
Returns
Overrides
|
public
Guzzle\Http\Message\Header\CacheControl
|
#
removeValue( string $searchValue )
Remove a specific value from the header
Remove a specific value from the header
Parameters
- $searchValue
- Value to remove
Returns
Overrides
|
public
boolean
|
#
hasDirective( string $param )
Check if a specific cache control directive exists
Check if a specific cache control directive exists
Parameters
- $param
- Directive to retrieve
Returns
boolean
|
public
string|boolean|null
|
#
getDirective( string $param )
Get a specific cache control directive
Get a specific cache control directive
Parameters
- $param
- Directive to retrieve
Returns
string|boolean|null
|
public
Guzzle\Http\Message\Header\CacheControl
|
#
addDirective( string $param, string $value )
Add a cache control directive
Add a cache control directive
Parameters
- $param
- Directive to add
- $value
- Value to set
Returns
|
public
Guzzle\Http\Message\Header\CacheControl
|
#
removeDirective( string $param )
Remove a cache control directive by name
Remove a cache control directive by name
Parameters
- $param
- Directive to remove
Returns
|
public
array
|
#
getDirectives( )
Get an associative array of cache control directives
Get an associative array of cache control directives
Returns
array
|
protected
|
#
updateFromDirectives( array $directives )
Updates the header value based on the parsed directives
Updates the header value based on the parsed directives
Parameters
- $directives
- Array of cache control directives
|
Methods inherited from Guzzle\Http\Message\Header
__construct(),
__toString(),
count(),
getGlue(),
getIterator(),
getName(),
hasExactHeader(),
hasValue(),
normalize(),
parseParams(),
raw(),
setGlue(),
setName(),
toArray(),
trimHeader()
|