We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306b113 commit 65fd352Copy full SHA for 65fd352
composer.json
@@ -17,7 +17,6 @@
17
"require": {
18
"php": ">=5.5.0",
19
"php-http/httplug": "^1.0",
20
- "php-http/client-common": "^0.2",
21
"guzzlehttp/guzzle": "^6.0"
22
},
23
"require-dev": {
src/Client.php
@@ -18,8 +18,6 @@
*/
class Client implements HttpClient, HttpAsyncClient
{
- use HttpClientEmulator;
-
/**
24
* @var ClientInterface
25
@@ -38,6 +36,16 @@ public function __construct(ClientInterface $client = null)
38
36
$this->client = $client;
39
37
}
40
+ /**
+ * {@inheritdoc}
41
+ */
42
+ public function sendRequest(RequestInterface $request)
43
+ {
44
+ $promise = $this->sendAsyncRequest($request);
45
+
46
+ return $promise->wait();
47
+ }
48
49
50
* {@inheritdoc}
51
0 commit comments