Response
Less than 1 minute
Response
Methods
writeOutput
Sends the response output to the client.
public writeOutput(): voidImplement this method to handle the final output of the response, such as sending headers and content to the browser or client.
getContent
Retrieves the content of the response as a string.
public getContent(): stringheader
Sets a header for the response.
public header(string $key, string $value, bool $overwrite = true): selfParameters
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$value | string | |
$overwrite | bool |
headers
Set multiple headers at once.
public headers(array $headers, bool $overwrite = true): selfParameters
| Parameter | Type | Description |
|---|---|---|
$headers | array | |
$overwrite | bool |
content
Sets the content of the response.
public content(mixed $content): selfParameters
| Parameter | Type | Description |
|---|---|---|
$content | mixed |
addContent
Adds content to the response.
public addContent(mixed $content): selfParameters
| Parameter | Type | Description |
|---|---|---|
$content | mixed |
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000