Documentation

ServerRequest
in package
implements ServerRequestInterface uses RequestTrait

A request from RoadRunner to the worker.

Tags
psalm-import-type

RequestOptions from RequestInterface

psalm-immutable

Table of Contents

Interfaces

ServerRequestInterface
Carries requests and responses between worker and host process.

Properties

$header  : HeaderInterface
$payloads  : ValuesInterface
$historyLength  : int
$id  : string
$name  : string
$options  : array<string|int, mixed>

Methods

__construct()  : mixed
getHeader()  : Header
getHistoryLength()  : int<0, max>
getID()  : string
getName()  : string
getOptions()  : array<string|int, mixed>
getPayloads()  : ValuesInterface
withHeader()  : self

Properties

Methods

__construct()

public __construct(non-empty-string $name[, RequestOptions $options = [] ][, ValuesInterface|null $payloads = null ][, non-empty-string|null $id = null ][, HeaderInterface|null $header = null ][, int<0, max> $historyLength = 0 ]) : mixed
Parameters
$name : non-empty-string
$options : RequestOptions = []
$payloads : ValuesInterface|null = null
$id : non-empty-string|null = null
$header : HeaderInterface|null = null
$historyLength : int<0, max> = 0

getHistoryLength()

public getHistoryLength() : int<0, max>
Return values
int<0, max>

getName()

public getName() : string
Return values
string

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results