CurrentHead
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.
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.
at line 37
int|null
status()
Get the current response status.
at line 45
void
setStatus(int $status)
Set the current response status.
at line 53
void
flush()
Clear the current page data and response status.
at line 62
ReplicableContext
replicate()
Copy the current state for an independent coroutine.