Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jchat/Framework/guzzlehttp/guzzle/src/Event/AbstractTransferEvent.php
Ðазад
<?php namespace GuzzleHttp\Event; /** * * @package JCHAT::FRAMEWORK::administrator::components::com_jchat * @subpackage framework * @subpackage guzzlehttp * @subpackage guzzle * @subpackage Event * @author Joomla! Extensions Store * @copyright (C) 2015 - Joomla! Extensions Store * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ defined ( '_JEXEC' ) or die ( 'Restricted access' ); use GuzzleHttp\Message\ResponseInterface; use GuzzleHttp\Ring\Future\FutureInterface; /** * Event that contains transfer statistics, and can be intercepted. */ abstract class AbstractTransferEvent extends AbstractRequestEvent { /** * Get all transfer information as an associative array if no $name * argument is supplied, or gets a specific transfer statistic if * a $name attribute is supplied (e.g., 'total_time'). * * @param string $name Name of the transfer stat to retrieve * * @return mixed|null|array */ public function getTransferInfo($name = null) { if (!$name) { return $this->transaction->transferInfo; } return isset($this->transaction->transferInfo[$name]) ? $this->transaction->transferInfo[$name] : null; } /** * Returns true/false if a response is available. * * @return bool */ public function hasResponse() { return !($this->transaction->response instanceof FutureInterface); } /** * Get the response. * * @return ResponseInterface|null */ public function getResponse() { return $this->hasResponse() ? $this->transaction->response : null; } /** * 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(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка