class CurrentHead implements ReplicableContext

The request-scoped head data and response status.

Properties

protected HeadData $data
protected int|null $status

Methods

__construct()

Create the current head state.

data()

Get the current head data.

int|null
status()

Get the current response status.

void
setStatus(int $status)

Set the current response status.

void
flush()

Clear the current page data and response status.

replicate()

Copy the current state for an independent coroutine.

Details

at line 21
__construct()

Create the current head state.

at line 29
HeadData data()

Get the current head data.

Return Value

HeadData

at line 37
int|null status()

Get the current response status.

Return Value

int|null

at line 45
void setStatus(int $status)

Set the current response status.

Parameters

int $status

Return Value

void

at line 53
void flush()

Clear the current page data and response status.

Return Value

void

at line 62
ReplicableContext replicate()

Copy the current state for an independent coroutine.

Return Value

ReplicableContext