Server IP : 127.0.0.2 / Your IP : 18.190.152.109 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/vendor/guzzlehttp/guzzle/src/ |
Upload File : |
<?php namespace GuzzleHttp; use GuzzleHttp\Message\RequestInterface; use GuzzleHttp\Message\ResponseInterface; /** * Represents the relationship between a client, request, and response. * * You can access the request, response, and client using their corresponding * public properties. */ class Transaction { /** * HTTP client used to transfer the request. * * @var ClientInterface */ public $client; /** * The request that is being sent. * * @var RequestInterface */ public $request; /** * The response associated with the transaction. A response will not be * present when a networking error occurs or an error occurs before sending * the request. * * @var ResponseInterface|null */ public $response; /** * Exception associated with the transaction. If this exception is present * when processing synchronous or future commands, then it is thrown. When * intercepting a failed transaction, you MUST set this value to null in * order to prevent the exception from being thrown. * * @var \Exception */ public $exception; /** * Associative array of handler specific transfer statistics and custom * key value pair information. When providing similar information, handlers * should follow the same key value pair naming conventions as PHP's * curl_getinfo() (http://php.net/manual/en/function.curl-getinfo.php). * * @var array */ public $transferInfo = []; /** * The number of transaction retries. * * @var int */ public $retries = 0; /** * The transaction's current state. * * @var string */ public $state; /** * Whether or not this is a future transaction. This value should not be * changed after the future is constructed. * * @var bool */ public $future; /** * The number of state transitions that this transaction has been through. * * @var int * @internal This is for internal use only. If you modify this, then you * are asking for trouble. */ public $_transitionCount = 0; /** * @param ClientInterface $client Client that is used to send the requests * @param RequestInterface $request Request to send * @param bool $future Whether or not this is a future request. */ public function __construct( ClientInterface $client, RequestInterface $request, $future = false ) { $this->client = $client; $this->request = $request; $this->_future = $future; } }