ServerRequest
in package
implements
ServerRequestInterface
uses
RequestTrait
A request from RoadRunner to the worker.
Tags
Table of Contents
Interfaces
- ServerRequestInterface
- Carries requests and responses between worker and host process.
Properties
- $header : HeaderInterface
- $payloads : ValuesInterface
- $id : string
- $info : TickInfo
- $name : string
- $options : array<string|int, mixed>
Methods
- __construct() : mixed
- getHeader() : Header
- getID() : string
- getName() : string
- getOptions() : array<string|int, mixed>
- getPayloads() : ValuesInterface
- getTickInfo() : TickInfo
- withHeader() : self
Properties
$header
protected
HeaderInterface
$header
$payloads
protected
ValuesInterface
$payloads
$id
private
string
$id
$info
private
TickInfo
$info
$name
private
string
$name
$options
private
array<string|int, mixed>
$options
= []
Methods
__construct()
public
__construct(non-empty-string $name, TickInfo $info[, RequestOptions $options = [] ][, ValuesInterface|null $payloads = null ][, non-empty-string|null $id = null ][, HeaderInterface|null $header = null ]) : mixed
Parameters
- $name : non-empty-string
- $info : TickInfo
- $options : RequestOptions = []
- $payloads : ValuesInterface|null = null
- $id : non-empty-string|null = null
- $header : HeaderInterface|null = null
getHeader()
public
getHeader() : Header
Return values
HeadergetID()
public
getID() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getPayloads()
public
getPayloads() : ValuesInterface
Return values
ValuesInterfacegetTickInfo()
public
getTickInfo() : TickInfo
Return values
TickInfowithHeader()
public
withHeader(HeaderInterface $header) : self
Parameters
- $header : HeaderInterface