\Psc\Library\Net\Http\ClientHttpClient

Summary

Methods
Properties
Constants
__construct()
request()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
pullConnection()
pushConnection()
$connectionPool
$pool
$config
N/A

Properties

$connectionPool

$connectionPool : \Psc\Library\Net\Http\Client\ConnectionPool

Type

ConnectionPool

$pool

$pool : bool

Type

bool

$config

$config : array

Type

array

Methods

__construct()

__construct(array  $config = []) : mixed

Parameters

array $config

Returns

mixed —

request()

request(\Psr\Http\Message\RequestInterface  $request, array  $option = []) : \Psc\Core\Coroutine\Promise<\Psr\Http\Message\ResponseInterface>

Parameters

\Psr\Http\Message\RequestInterface $request
array $option

Returns

\Psc\Core\Coroutine\Promise<\Psr\Http\Message\ResponseInterface> —

pullConnection()

pullConnection(string  $host, int  $port, bool  $ssl) : \Psc\Core\Coroutine\Promise<\Psc\Library\Net\Http\Client\Connection>

Parameters

string $host
int $port
bool $ssl

Throws

\Throwable

Returns

\Psc\Core\Coroutine\Promise<\Psc\Library\Net\Http\Client\Connection> —

pushConnection()

pushConnection(\Psc\Library\Net\Http\Client\Connection  $connection, bool  $ssl) : void

Parameters

\Psc\Library\Net\Http\Client\Connection $connection
bool $ssl