| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Contract\Curler\Event; |
| 4: | |
| 5: | use Psr\Http\Message\RequestInterface as PsrRequestInterface; |
| 6: | use Salient\Contract\Http\Message\ResponseInterface; |
| 7: | |
| 8: | /** |
| 9: | * Dispatched when a request is resolved from the response cache |
| 10: | * |
| 11: | * @api |
| 12: | */ |
| 13: | interface ResponseCacheHitEvent extends CurlerEvent |
| 14: | { |
| 15: | /** |
| 16: | * Get the request resolved from the response cache |
| 17: | */ |
| 18: | public function getRequest(): PsrRequestInterface; |
| 19: | |
| 20: | /** |
| 21: | * Get the response originally received from the endpoint |
| 22: | */ |
| 23: | public function getResponse(): ResponseInterface; |
| 24: | } |
| 25: |