Exception
3 years ago
HttpClientPool
3 years ago
Plugin
3 years ago
BatchClient.php
3 years ago
BatchResult.php
3 years ago
Deferred.php
3 years ago
EmulatedHttpAsyncClient.php
3 years ago
EmulatedHttpClient.php
3 years ago
FlexibleHttpClient.php
3 years ago
HttpAsyncClientDecorator.php
3 years ago
HttpAsyncClientEmulator.php
3 years ago
HttpClientDecorator.php
3 years ago
HttpClientEmulator.php
3 years ago
HttpClientPool.php
3 years ago
HttpClientPoolItem.php
3 years ago
HttpClientRouter.php
3 years ago
HttpMethodsClient.php
3 years ago
Plugin.php
3 years ago
PluginClient.php
3 years ago
PluginClientFactory.php
3 years ago
VersionBridgeClient.php
3 years ago
VersionBridgeClient.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaHttp\Client\Common; |
| 4 | |
| 5 | use AmeliaPsr\Http\Message\RequestInterface; |
| 6 | |
| 7 | /** |
| 8 | * A client that helps you migrate from php-http/httplug 1.x to 2.x. This |
| 9 | * will also help you to support PHP5 at the same time you support 2.x. |
| 10 | * |
| 11 | * @author Tobias Nyholm <tobias.nyholm@gmail.com> |
| 12 | */ |
| 13 | trait VersionBridgeClient |
| 14 | { |
| 15 | abstract protected function doSendRequest(RequestInterface $request); |
| 16 | |
| 17 | public function sendRequest(RequestInterface $request) |
| 18 | { |
| 19 | return $this->doSendRequest($request); |
| 20 | } |
| 21 | } |
| 22 |