Skip to content

Commit 82cf0dd

Browse files
authored
Reflect changes on the specification (#6)
1 parent 02cfa4a commit 82cf0dd

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/ClientInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ 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 an 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
*
1717
* The client MAY do modifications to the Request before sending it. Because PSR-7 objects are
1818
* 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
19+
* object that is actually sent. For example, the Request object that is returned by an exception MAY
2020
* be a different object than the one passed to sendRequest, so comparison by reference (===) is not possible.
2121
*
2222
* {@link https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message-meta.md#why-value-objects}
@@ -25,7 +25,7 @@ interface ClientInterface
2525
*
2626
* @return ResponseInterface
2727
*
28-
* @throws \Psr\Http\Client\ClientException If an error happens during processing the request.
28+
* @throws \Psr\Http\Client\ClientException If an error happens while processing the request.
2929
*/
3030
public function sendRequest(RequestInterface $request): ResponseInterface;
3131
}

src/Exception/NetworkException.php renamed to src/NetworkException.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

3-
namespace Psr\Http\Client\Exception;
3+
namespace Psr\Http\Client;
44

5-
use Psr\Http\Client\ClientException;
65
use Psr\Http\Message\RequestInterface;
76

87
/**

src/Exception/RequestException.php renamed to src/RequestException.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

3-
namespace Psr\Http\Client\Exception;
3+
namespace Psr\Http\Client;
44

5-
use Psr\Http\Client\ClientException;
65
use Psr\Http\Message\RequestInterface;
76

87
/**

0 commit comments

Comments
 (0)