1111 *
1212 * Use this interface when you do not have PSR-7 RequestInterface instances available.
1313 *
14- * Implementations should be configured in their constructor. For runtime behaviour changes, there
15- * is an $options parameter. It SHOULD be validated by the client and an exception thrown if
16- * unknown options are passed.
17- * Option that must be accepted by every client implementation (though it is free to ignore them
18- * if the underlying implementation does not support the option):
19- *
20- * - timeout (int): the timeout for the HTTP request in seconds. 0 means to use the default.
21- *
2214 * @author Márk Sági-Kazár mark.sagikazar@gmail.com>
2315 */
2416interface HttpMethodsClient
@@ -28,109 +20,101 @@ interface HttpMethodsClient
2820 *
2921 * @param string|UriInterface $uri
3022 * @param array $headers
31- * @param array $options
3223 *
3324 * @throws Exception
3425 *
3526 * @return ResponseInterface
3627 */
37- public function get ($ uri , array $ headers = [], array $ options = [] );
28+ public function get ($ uri , array $ headers = []);
3829
3930 /**
4031 * Sends an HEAD request
4132 *
4233 * @param string|UriInterface $uri
4334 * @param array $headers
44- * @param array $options
4535 *
4636 * @throws Exception
4737 *
4838 * @return ResponseInterface
4939 */
50- public function head ($ uri , array $ headers = [], array $ options = [] );
40+ public function head ($ uri , array $ headers = []);
5141
5242 /**
5343 * Sends a TRACE request
5444 *
5545 * @param string|UriInterface $uri
5646 * @param array $headers
57- * @param array $options
5847 *
5948 * @throws Exception
6049 *
6150 * @return ResponseInterface
6251 */
63- public function trace ($ uri , array $ headers = [], array $ options = [] );
52+ public function trace ($ uri , array $ headers = []);
6453
6554 /**
6655 * Sends a POST request
6756 *
6857 * @param string|UriInterface $uri
6958 * @param array $headers
7059 * @param string|Body|StreamInterface|null $body
71- * @param array $options
7260 *
7361 * @throws Exception
7462 *
7563 * @return ResponseInterface
7664 */
77- public function post ($ uri , array $ headers = [], $ body = null , array $ options = [] );
65+ public function post ($ uri , array $ headers = [], $ body = null );
7866
7967 /**
8068 * Sends a PUT request
8169 *
8270 * @param string|UriInterface $uri
8371 * @param array $headers
8472 * @param string|Body|StreamInterface|null $body
85- * @param array $options
8673 *
8774 * @throws Exception
8875 *
8976 * @return ResponseInterface
9077 */
91- public function put ($ uri , array $ headers = [], $ body = null , array $ options = [] );
78+ public function put ($ uri , array $ headers = [], $ body = null );
9279
9380 /**
9481 * Sends a PATCH request
9582 *
9683 * @param string|UriInterface $uri
9784 * @param array $headers
9885 * @param string|Body|StreamInterface|null $body
99- * @param array $options
10086 *
10187 * @throws Exception
10288 *
10389 * @return ResponseInterface
10490 */
105- public function patch ($ uri , array $ headers = [], $ body = null , array $ options = [] );
91+ public function patch ($ uri , array $ headers = [], $ body = null );
10692
10793 /**
10894 * Sends a DELETE request
10995 *
11096 * @param string|UriInterface $uri
11197 * @param array $headers
11298 * @param string|Body|StreamInterface|null $body
113- * @param array $options
11499 *
115100 * @throws Exception
116101 *
117102 * @return ResponseInterface
118103 */
119- public function delete ($ uri , array $ headers = [], $ body = null , array $ options = [] );
104+ public function delete ($ uri , array $ headers = [], $ body = null );
120105
121106 /**
122107 * Sends an OPTIONS request
123108 *
124109 * @param string|UriInterface $uri
125110 * @param array $headers
126111 * @param string|Body|StreamInterface|null $body
127- * @param array $options
128112 *
129113 * @throws Exception
130114 *
131115 * @return ResponseInterface
132116 */
133- public function options ($ uri , array $ headers = [], $ body = null , array $ options = [] );
117+ public function options ($ uri , array $ headers = [], $ body = null );
134118
135119 /**
136120 * Sends a request
@@ -139,11 +123,10 @@ public function options($uri, array $headers = [], $body = null, array $options
139123 * @param string|UriInterface $uri
140124 * @param array $headers
141125 * @param string|Body|StreamInterface|null $body
142- * @param array $options
143126 *
144127 * @throws Exception
145128 *
146129 * @return ResponseInterface
147130 */
148- public function send ($ method , $ uri , array $ headers = [], $ body = null , array $ options = [] );
131+ public function send ($ method , $ uri , array $ headers = [], $ body = null );
149132}
0 commit comments