Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ClientInterface.php
001 <?php
002 namespace GuzzleHttp;
003
004 use GuzzleHttp\Event\HasEmitterInterface;
005 use GuzzleHttp\Exception\RequestException;
006 use GuzzleHttp\Message\RequestInterface;
007 use GuzzleHttp\Message\ResponseInterface;
008
009 /**
010 * Client interface for sending HTTP requests
011 */
012 interface ClientInterface extends HasEmitterInterface
013 {
014 const VERSION = '5.3.1';
015
016 /**
017 * Create and return a new {@see RequestInterface} object.
018 *
019 * Use an absolute path to override the base path of the client, or a
020 * relative path to append to the base path of the client. The URL can
021 * contain the query string as well. Use an array to provide a URL
022 * template and additional variables to use in the URL template expansion.
023 *
024 * @param string $method HTTP method
025 * @param string|array|Url $url URL or URI template
026 * @param array $options Array of request options to apply.
027 *
028 * @return RequestInterface
029 */
030 public function createRequest($method, $url = null, array $options = []);
031
032 /**
033 * Send a GET request
034 *
035 * @param string|array|Url $url URL or URI template
036 * @param array $options Array of request options to apply.
037 *
038 * @return ResponseInterface
039 * @throws RequestException When an error is encountered
040 */
041 public function get($url = null, $options = []);
042
043 /**
044 * Send a HEAD request
045 *
046 * @param string|array|Url $url URL or URI template
047 * @param array $options Array of request options to apply.
048 *
049 * @return ResponseInterface
050 * @throws RequestException When an error is encountered
051 */
052 public function head($url = null, array $options = []);
053
054 /**
055 * Send a DELETE request
056 *
057 * @param string|array|Url $url URL or URI template
058 * @param array $options Array of request options to apply.
059 *
060 * @return ResponseInterface
061 * @throws RequestException When an error is encountered
062 */
063 public function delete($url = null, array $options = []);
064
065 /**
066 * Send a PUT request
067 *
068 * @param string|array|Url $url URL or URI template
069 * @param array $options Array of request options to apply.
070 *
071 * @return ResponseInterface
072 * @throws RequestException When an error is encountered
073 */
074 public function put($url = null, array $options = []);
075
076 /**
077 * Send a PATCH request
078 *
079 * @param string|array|Url $url URL or URI template
080 * @param array $options Array of request options to apply.
081 *
082 * @return ResponseInterface
083 * @throws RequestException When an error is encountered
084 */
085 public function patch($url = null, array $options = []);
086
087 /**
088 * Send a POST request
089 *
090 * @param string|array|Url $url URL or URI template
091 * @param array $options Array of request options to apply.
092 *
093 * @return ResponseInterface
094 * @throws RequestException When an error is encountered
095 */
096 public function post($url = null, array $options = []);
097
098 /**
099 * Send an OPTIONS request
100 *
101 * @param string|array|Url $url URL or URI template
102 * @param array $options Array of request options to apply.
103 *
104 * @return ResponseInterface
105 * @throws RequestException When an error is encountered
106 */
107 public function options($url = null, array $options = []);
108
109 /**
110 * Sends a single request
111 *
112 * @param RequestInterface $request Request to send
113 *
114 * @return \GuzzleHttp\Message\ResponseInterface
115 * @throws \LogicException When the handler does not populate a response
116 * @throws RequestException When an error is encountered
117 */
118 public function send(RequestInterface $request);
119
120 /**
121 * Get default request options of the client.
122 *
123 * @param string|null $keyOrPath The Path to a particular default request
124 * option to retrieve or pass null to retrieve all default request
125 * options. The syntax uses "/" to denote a path through nested PHP
126 * arrays. For example, "headers/content-type".
127 *
128 * @return mixed
129 */
130 public function getDefaultOption($keyOrPath = null);
131
132 /**
133 * Set a default request option on the client so that any request created
134 * by the client will use the provided default value unless overridden
135 * explicitly when creating a request.
136 *
137 * @param string|null $keyOrPath The Path to a particular configuration
138 * value to set. The syntax uses a path notation that allows you to
139 * specify nested configuration values (e.g., 'headers/content-type').
140 * @param mixed $value Default request option value to set
141 */
142 public function setDefaultOption($keyOrPath, $value);
143
144 /**
145 * Get the base URL of the client.
146 *
147 * @return string Returns the base URL if present
148 */
149 public function getBaseUrl();
150 }
151