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