diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
commit | 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 (patch) | |
tree | 4d541098d751d5a9acf8c12f6fb9f308ace066ac /vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php | |
download | flyspray-8df3db566a3a937b45ebf11adb90d265e6f5e2d4.tar.xz |
initial checking of customized version 1.0rc9
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php')
-rw-r--r-- | vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php b/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php new file mode 100644 index 0000000..52353d8 --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php @@ -0,0 +1,32 @@ +<?php + +namespace Guzzle\Plugin\Cache; + +use Guzzle\Http\Message\RequestInterface; +use Guzzle\Http\Message\Response; + +/** + * Cache revalidation interface + */ +interface RevalidationInterface +{ + /** + * Performs a cache revalidation + * + * @param RequestInterface $request Request to revalidate + * @param Response $response Response that was received + * + * @return bool Returns true if the request can be cached + */ + public function revalidate(RequestInterface $request, Response $response); + + /** + * Returns true if the response should be revalidated + * + * @param RequestInterface $request Request to check + * @param Response $response Response to check + * + * @return bool + */ + public function shouldRevalidate(RequestInterface $request, Response $response); +} |