Skip to content

Commit 6468cfe

Browse files
committed
simplify client now that we only support httplug 2
1 parent d8e200d commit 6468cfe

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Client.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
class Client implements HttpClient, HttpAsyncClient
2727
{
2828
use HttpAsyncClientEmulator;
29-
use VersionBridgeClient;
3029

3130
/**
3231
* @var ResponseFactory|ResponseFactoryInterface
@@ -78,9 +77,15 @@ public function __construct($responseFactory = null)
7877
}
7978

8079
/**
81-
* {@inheritdoc}
80+
* This will in order:
81+
*
82+
* - Throw the next exception in the list and advance
83+
* - Return the next response in the list and advance
84+
* - Throw the default exception if set (forever)
85+
* - Return the default response if set (forever)
86+
* - Create a new empty response with the response factory
8287
*/
83-
public function doSendRequest(RequestInterface $request)
88+
public function sendRequest(RequestInterface $request): ResponseInterface
8489
{
8590
$this->requests[] = $request;
8691

0 commit comments

Comments
 (0)