Table of Contents
Properties
-
$_connector
: mixed
-
$_loop
: mixed
-
$_negotiator
: mixed
Methods
-
__construct()
: mixed
-
__invoke()
: PromiseInterface
-
generateRequest()
: RequestInterface
$_connector
protected
mixed
$_connector
$_loop
protected
mixed
$_loop
$_negotiator
protected
mixed
$_negotiator
__construct()
public
__construct([LoopInterface $loop = null ][, ConnectorInterface $connector = null ]) : mixed
Parameters
-
$loop
: LoopInterface
= null
-
-
$connector
: ConnectorInterface
= null
-
__invoke()
public
__invoke(string $url[, array<string|int, mixed> $subProtocols = [] ][, array<string|int, mixed> $headers = [] ]) : PromiseInterface
Parameters
-
$url
: string
-
-
$subProtocols
: array<string|int, mixed>
= []
-
-
$headers
: array<string|int, mixed>
= []
-
generateRequest()
protected
generateRequest(string $url, array<string|int, mixed> $subProtocols, array<string|int, mixed> $headers) : RequestInterface
Parameters
-
$url
: string
-
-
$subProtocols
: array<string|int, mixed>
-
-
$headers
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException