Skip to content

Commit 496a823

Browse files
Merge pull request #9 from php-fig/patch-2
Updated interfaces from specification
2 parents bf26b2b + 0fd911e commit 496a823

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

src/ClientExceptionInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Psr\Http\Client;
44

55
/**
6-
* Every HTTP client related Exception MUST implement this interface.
6+
* Every HTTP client related exception MUST implement this interface.
77
*/
88
interface ClientExceptionInterface extends \Throwable
99
{
10-
}
10+
}

src/ClientInterface.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ 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
14-
* error response or a redirect instruction. The only special case is 1xx responses, which MUST
15-
* be assembled in the HTTP client.
16-
*
17-
* The client MAY do modifications to the Request before sending it. Because PSR-7 objects are
18-
* immutable, one cannot assume that the object passed to ClientInterface::sendRequest() will be the same
19-
* object that is actually sent. For example, the Request object that is returned by an exception MAY
20-
* be a different object than the one passed to sendRequest, so comparison by reference (===) is not possible.
21-
*
22-
* {@link https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message-meta.md#why-value-objects}
23-
*
2413
* @param RequestInterface $request
2514
*
2615
* @return ResponseInterface

src/NetworkExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ interface NetworkExceptionInterface extends ClientExceptionInterface
2121
* @return RequestInterface
2222
*/
2323
public function getRequest(): RequestInterface;
24-
}
24+
}

0 commit comments

Comments
 (0)