public request ( Icicle\Socket\Socket $socket, string $method, string | Icicle\Http\Message\Uri $uri, array $headers = [], Icicle\Stream\ReadableStream $body = null, array $options = [] ) : Generator | ||
$socket | Icicle\Socket\Socket | |
$method | string | |
$uri | string | Icicle\Http\Message\Uri | |
$headers | array | |
$body | Icicle\Stream\ReadableStream | |
$options | array | |
Результат | Generator |
public function request(Socket $socket, string $method, $uri, array $headers = [], ReadableStream $body = null, array $options = []) : \Generator
{
return yield from $this->send($socket, new BasicRequest($method, $uri, $headers, $body), $options);
}