Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • 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
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • CachePlugin
  • CallbackCacheKeyProvider
  • CallbackCanCacheStrategy
  • DefaultCacheKeyProvider
  • DefaultCacheStorage
  • DefaultCanCacheStrategy
  • DefaultRevalidation
  • DenyRevalidation
  • SkipRevalidation

Interfaces

  • CacheKeyProviderInterface
  • CacheStorageInterface
  • CanCacheStrategyInterface
  • RevalidationInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class CallbackCanCacheStrategy

Determines if a request can be cached using a callback

Guzzle\Plugin\Cache\DefaultCanCacheStrategy implements Guzzle\Plugin\Cache\CanCacheStrategyInterface
Extended by Guzzle\Plugin\Cache\CallbackCanCacheStrategy
Namespace: Guzzle\Plugin\Cache
Located at Guzzle/Plugin/Cache/CallbackCanCacheStrategy.php
Methods summary
public
# __construct( Closure|array|mixed $requestCallback = null, Closure|array|mixed $responseCallback = null )

Parameters

$requestCallback
Closure|array|mixed
$requestCallback Callable method to invoke for requests
$responseCallback
Closure|array|mixed
$responseCallback Callable method to invoke for responses

Throws

Guzzle\Common\Exception\InvalidArgumentException
public boolean
# canCacheRequest( Guzzle\Http\Message\RequestInterface $request )

Determine if a request can be cached

Determine if a request can be cached

Parameters

$request
Guzzle\Http\Message\RequestInterface
$request Request to determine

Returns

boolean

Overrides

Guzzle\Plugin\Cache\DefaultCanCacheStrategy::canCacheRequest()
public boolean
# canCacheResponse( Guzzle\Http\Message\Response $response )

Determine if a response can be cached

Determine if a response can be cached

Parameters

$response
Guzzle\Http\Message\Response
$response Response to determine

Returns

boolean

Overrides

Guzzle\Plugin\Cache\DefaultCanCacheStrategy::canCacheResponse()
Properties summary
protected callable $requestCallback
#

Callback for request

Callback for request

protected callable $responseCallback
#

Callback for response

Callback for response

php-coveralls API documentation generated by ApiGen 2.8.0