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 1111 }
1212 ],
1313 "require" : {
14- "php" : " ^7.0"
14+ "php" : " ^7.0" ,
15+ "psr/http-message" : " ^1.0"
1516 },
1617 "autoload" : {
1718 "psr-4" : {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ interface ClientInterface
1010 /**
1111 * Sends a PSR-7 request and returns a PSR-7 response.
1212 *
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
1414 * error response or a redirect instruction. The only special case is 1xx responses, which MUST
1515 * be assembled in the HTTP client.
1616 *
@@ -25,7 +25,7 @@ interface ClientInterface
2525 *
2626 * @return ResponseInterface
2727 *
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.
2929 */
3030 public function sendRequest (RequestInterface $ request ): ResponseInterface ;
3131}
Original file line number Diff line number Diff line change 22
33namespace Psr \Http \Client \Exception ;
44
5- use Psr \Http \Message \RequestInterface ;
65use Psr \Http \Client \ClientException ;
6+ use Psr \Http \Message \RequestInterface ;
77
88/**
99 * Exception for when a request failed.
1010 *
1111 * 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)
1414 */
1515interface RequestException extends ClientException
1616{
You can’t perform that action at this time.
0 commit comments