Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • CacheControl
  • HeaderCollection
  • HeaderFactory
  • Link

Interfaces

  • HeaderFactoryInterface
  • HeaderInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class CacheControl

Provides helpful functionality for Cache-Control headers

Guzzle\Http\Message\Header implements Guzzle\Http\Message\Header\HeaderInterface
Extended by Guzzle\Http\Message\Header\CacheControl
Namespace: Guzzle\Http\Message\Header
Located at src/Guzzle/Http/Message/Header/CacheControl.php
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

Guzzle\Http\Message\Header\CacheControl

Overrides

Guzzle\Http\Message\Header::add()
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

Guzzle\Http\Message\Header\CacheControl

Overrides

Guzzle\Http\Message\Header::removeValue()
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

Guzzle\Http\Message\Header\CacheControl
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

Guzzle\Http\Message\Header\CacheControl
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()
Properties summary
protected array $directives
#
Properties inherited from Guzzle\Http\Message\Header
$glue, $header, $values
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen