Documentation

RoadRunner
in package
implements HostConnectionInterface

FinalYes
Tags
psalm-type

JsonHeaders = string

codeCoverageIgnore

tested via roadrunner-temporal repository.

Table of Contents

Interfaces

HostConnectionInterface

Constants

ERROR_HEADERS_FORMAT  = 'Incorrect format of received headers. An array<string, mixed> ' . 'required, but %s (%s) given'

Properties

$codec  : CodecInterface
$worker  : WorkerInterface

Methods

__construct()  : mixed
create()  : HostConnectionInterface
error()  : void
send()  : void
waitBatch()  : CommandBatch|null
decodeHeaders()  : array<string, string>
encodeHeaders()  : JsonHeaders|null

Constants

ERROR_HEADERS_FORMAT

private string ERROR_HEADERS_FORMAT = 'Incorrect format of received headers. An array<string, mixed> ' . 'required, but %s (%s) given'

Properties

Methods

__construct()

public __construct(WorkerInterface $worker) : mixed
Parameters
$worker : WorkerInterface

error()

public error(Throwable $error) : void
Parameters
$error : Throwable

send()

public send(string $frame[, array<string|int, mixed> $headers = [] ]) : void
Parameters
$frame : string
$headers : array<string|int, mixed> = []

decodeHeaders()

private decodeHeaders([JsonHeaders|null $headers = null ]) : array<string, string>
Parameters
$headers : JsonHeaders|null = null
Tags
throws
ProtocolException
Return values
array<string, string>

encodeHeaders()

private encodeHeaders(array<string, string> $headers) : JsonHeaders|null
Parameters
$headers : array<string, string>
Return values
JsonHeaders|null

        
On this page

Search results