File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11
11
}
12
12
],
13
13
"require" : {
14
- "php" : " ^7.0"
14
+ "php" : " ^7.0" ,
15
+ "psr/http-message" : " ^1.0"
15
16
},
16
17
"autoload" : {
17
18
"psr-4" : {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ interface ClientInterface
10
10
/**
11
11
* Sends a PSR-7 request and returns a PSR-7 response.
12
12
*
13
- * Every technically correct HTTP response MUST be returned as is, even if it represents an HTTP
13
+ * Every technically correct HTTP response MUST be returned as is, even if it represents a HTTP
14
14
* error response or a redirect instruction. The only special case is 1xx responses, which MUST
15
15
* be assembled in the HTTP client.
16
16
*
@@ -25,7 +25,7 @@ interface ClientInterface
25
25
*
26
26
* @return ResponseInterface
27
27
*
28
- * @throws \Psr\Http\Client\Exception If an error happens during processing the request.
28
+ * @throws \Psr\Http\Client\ClientException If an error happens during processing the request.
29
29
*/
30
30
public function sendRequest (RequestInterface $ request ): ResponseInterface ;
31
31
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Psr \Http \Client \Exception ;
4
4
5
- use Psr \Http \Message \RequestInterface ;
6
5
use Psr \Http \Client \ClientException ;
6
+ use Psr \Http \Message \RequestInterface ;
7
7
8
8
/**
9
9
* Exception for when a request failed.
10
10
*
11
11
* Examples:
12
- * - Request is invalid (eg . method is missing)
13
- * - Runtime request errors (like the body stream is not seekable)
12
+ * - Request is invalid (e.g . method is missing)
13
+ * - Runtime request errors (e.g. the body stream is not seekable)
14
14
*/
15
15
interface RequestException extends ClientException
16
16
{
You can’t perform that action at this time.
0 commit comments