@@ 44-51 (lines=8) @@ | ||
41 | /** |
|
42 | * {@inheritdoc} |
|
43 | */ |
|
44 | public function sendRequest(RequestInterface $request) |
|
45 | { |
|
46 | try { |
|
47 | return $this->pluginClient->sendRequest($request); |
|
48 | } catch (\Http\Client\Common\Exception\LoopException $e) { |
|
49 | throw new LoopException($e->getMessage(), $e->getRequest(), $e); |
|
50 | } |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * {@inheritdoc} |
|
@@ 56-63 (lines=8) @@ | ||
53 | /** |
|
54 | * {@inheritdoc} |
|
55 | */ |
|
56 | public function sendAsyncRequest(RequestInterface $request) |
|
57 | { |
|
58 | try { |
|
59 | return $this->pluginClient->sendAsyncRequest($request); |
|
60 | } catch (\Http\Client\Common\Exception\LoopException $e) { |
|
61 | throw new LoopException($e->getMessage(), $e->getRequest(), $e); |
|
62 | } |
|
63 | } |
|
64 | } |
|
65 |