Server IP : 127.0.0.2 / Your IP : 13.59.234.246 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\Event\HasEmitterInterface; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Message\RequestInterface; use GuzzleHttp\Message\ResponseInterface; /** * Client interface for sending HTTP requests */ interface ClientInterface extends HasEmitterInterface { const VERSION = '5.3.1'; /** * Create and return a new {@see RequestInterface} object. * * Use an absolute path to override the base path of the client, or a * relative path to append to the base path of the client. The URL can * contain the query string as well. Use an array to provide a URL * template and additional variables to use in the URL template expansion. * * @param string $method HTTP method * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return RequestInterface */ public function createRequest($method, $url = null, array $options = []); /** * Send a GET request * * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return ResponseInterface * @throws RequestException When an error is encountered */ public function get($url = null, $options = []); /** * Send a HEAD request * * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return ResponseInterface * @throws RequestException When an error is encountered */ public function head($url = null, array $options = []); /** * Send a DELETE request * * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return ResponseInterface * @throws RequestException When an error is encountered */ public function delete($url = null, array $options = []); /** * Send a PUT request * * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return ResponseInterface * @throws RequestException When an error is encountered */ public function put($url = null, array $options = []); /** * Send a PATCH request * * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return ResponseInterface * @throws RequestException When an error is encountered */ public function patch($url = null, array $options = []); /** * Send a POST request * * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return ResponseInterface * @throws RequestException When an error is encountered */ public function post($url = null, array $options = []); /** * Send an OPTIONS request * * @param string|array|Url $url URL or URI template * @param array $options Array of request options to apply. * * @return ResponseInterface * @throws RequestException When an error is encountered */ public function options($url = null, array $options = []); /** * Sends a single request * * @param RequestInterface $request Request to send * * @return \GuzzleHttp\Message\ResponseInterface * @throws \LogicException When the handler does not populate a response * @throws RequestException When an error is encountered */ public function send(RequestInterface $request); /** * Get default request options of the client. * * @param string|null $keyOrPath The Path to a particular default request * option to retrieve or pass null to retrieve all default request * options. The syntax uses "/" to denote a path through nested PHP * arrays. For example, "headers/content-type". * * @return mixed */ public function getDefaultOption($keyOrPath = null); /** * Set a default request option on the client so that any request created * by the client will use the provided default value unless overridden * explicitly when creating a request. * * @param string|null $keyOrPath The Path to a particular configuration * value to set. The syntax uses a path notation that allows you to * specify nested configuration values (e.g., 'headers/content-type'). * @param mixed $value Default request option value to set */ public function setDefaultOption($keyOrPath, $value); /** * Get the base URL of the client. * * @return string Returns the base URL if present */ public function getBaseUrl(); }