Connection
final class Connection
| internal |
Methods
__construct(ClientFactoryInterface $clientFactory, Endpoint $endpoint, float $connectTimeout, float $writeTimeout, array $settings = [], Closure|null $onRetired = null)
Create a reusable HTTP/2 connection slot.
void
start(Closure $requestFactory, StreamState $state, Deadline $deadline)
Start one HTTP/2 stream and route its response asynchronously.
void
write(StreamState $state, string $frame, bool $end, Deadline $deadline)
Write framed data to an accepted HTTP/2 stream.
bool
isAccepting()
Determine whether this connection can accept a new call.
bool
isClosed()
Determine whether this connection has terminated.
void
close()
Close the connection and fail every incomplete call.
Details
at line 61
__construct(ClientFactoryInterface $clientFactory, Endpoint $endpoint, float $connectTimeout, float $writeTimeout, array $settings = [], Closure|null $onRetired = null)
Create a reusable HTTP/2 connection slot.
at line 76
void
start(Closure $requestFactory, StreamState $state, Deadline $deadline)
Start one HTTP/2 stream and route its response asynchronously.
at line 222
void
write(StreamState $state, string $frame, bool $end, Deadline $deadline)
Write framed data to an accepted HTTP/2 stream.
at line 302
bool
isAccepting()
Determine whether this connection can accept a new call.
at line 310
bool
isClosed()
Determine whether this connection has terminated.
at line 318
void
close()
Close the connection and fail every incomplete call.