forked from lino/radar-wp
Initial import.
This commit is contained in:
commit
86383280c9
428 changed files with 68738 additions and 0 deletions
30
vendor/guzzle/plugin-cache/Guzzle/Plugin/Cache/CanCacheStrategyInterface.php
vendored
Normal file
30
vendor/guzzle/plugin-cache/Guzzle/Plugin/Cache/CanCacheStrategyInterface.php
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace Guzzle\Plugin\Cache;
|
||||
|
||||
use Guzzle\Http\Message\RequestInterface;
|
||||
use Guzzle\Http\Message\Response;
|
||||
|
||||
/**
|
||||
* Strategy used to determine if a request can be cached
|
||||
*/
|
||||
interface CanCacheStrategyInterface
|
||||
{
|
||||
/**
|
||||
* Determine if a request can be cached
|
||||
*
|
||||
* @param RequestInterface $request Request to determine
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function canCacheRequest(RequestInterface $request);
|
||||
|
||||
/**
|
||||
* Determine if a response can be cached
|
||||
*
|
||||
* @param Response $response Response to determine
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function canCacheResponse(Response $response);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue