Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/Cloudflare-CPanel-7.0.1/vendor/guzzlehttp/guzzle/src/Event/ |
<?php namespace GuzzleHttp\Event; use GuzzleHttp\Message\ResponseInterface; /** * Event object emitted before a request is sent. * * This event MAY be emitted multiple times (i.e., if a request is retried). * You MAY change the Response associated with the request using the * intercept() method of the event. */ class BeforeEvent extends AbstractRequestEvent { /** * Intercept the request and associate a response * * @param ResponseInterface $response Response to set */ public function intercept(ResponseInterface $response) { $this->transaction->response = $response; $this->transaction->exception = null; $this->stopPropagation(); } }