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