Completed
Push — master ( 9c21b6...43c791 )
by David
04:48
created

HttpClientPool::sendRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Http\Client\Common;
6
7
use Http\Client\Common\HttpClientPool\HttpClientPoolItem;
8
use Http\Client\HttpAsyncClient;
9
use Http\Client\HttpClient;
10
use Psr\Http\Client\ClientInterface;
11
12
/**
13
 * A http client pool allows to send requests on a pool of different http client using a specific strategy (least used,
14
 * round robin, ...).
15
 */
16
interface HttpClientPool extends HttpAsyncClient, HttpClient
17
{
18
    /**
19
     * Add a client to the pool.
20
     *
21
     * @param ClientInterface|HttpAsyncClient|HttpClientPoolItem $client
22
     */
23
    public function addHttpClient($client);
24
}
25