Skip to content

Commit

Permalink
Reflect changes on the specification (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Aug 14, 2018
1 parent 02cfa4a commit 82cf0dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ interface ClientInterface
/**
* Sends a PSR-7 request and returns a PSR-7 response.
*
* Every technically correct HTTP response MUST be returned as is, even if it represents an HTTP
* Every technically correct HTTP response MUST be returned as-is, even if it represents an HTTP
* error response or a redirect instruction. The only special case is 1xx responses, which MUST
* be assembled in the HTTP client.
*
* The client MAY do modifications to the Request before sending it. Because PSR-7 objects are
* immutable, one cannot assume that the object passed to ClientInterface::sendRequest() will be the same
* object that is actually sent. For example the Request object that is returned by an exception MAY
* object that is actually sent. For example, the Request object that is returned by an exception MAY
* be a different object than the one passed to sendRequest, so comparison by reference (===) is not possible.
*
* {@link https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message-meta.md#why-value-objects}
Expand All @@ -25,7 +25,7 @@ interface ClientInterface
*
* @return ResponseInterface
*
* @throws \Psr\Http\Client\ClientException If an error happens during processing the request.
* @throws \Psr\Http\Client\ClientException If an error happens while processing the request.
*/
public function sendRequest(RequestInterface $request): ResponseInterface;
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

namespace Psr\Http\Client\Exception;
namespace Psr\Http\Client;

use Psr\Http\Client\ClientException;
use Psr\Http\Message\RequestInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

namespace Psr\Http\Client\Exception;
namespace Psr\Http\Client;

use Psr\Http\Client\ClientException;
use Psr\Http\Message\RequestInterface;

/**
Expand Down

0 comments on commit 82cf0dd

Please sign in to comment.