Back to Opencart

Class Opencart\System\Library\Response

docs/api/Opencart.System.Library.Response.html

4.1.0.33.8 KB
Original Source

Namespaces

Classes

Class Opencart[System](http://localhost\opencart-master/docs/api/namespace-Opencart.System.html)\[Library](http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html)\[Response](http://localhost\opencart-master/docs/api/Opencart.System.Library.Response.html)

Class Response Stores the response so the correct headers can go out before the response output is shown.

Located at system\library\response.php

Methods
`
public

			` | `addHeader(string $header): void`

Constructor

Constructor

| # | | `

public

			` | `getHeaders(): array<int, string>`

getHeaders

getHeaders

| # | | `

public

			` | `redirect(string $url, int $status = 302): void`

Redirect

Redirect

| # | | `

public

			` | `setCompression(int $level): void`

setCompression

setCompression

| # | | `

public

			` | `setOutput(string $output): void`

setOutput

setOutput

| # | | `

public

			` | `getOutput(): string`

getOutput

getOutput

| # | | `

public

			` | `output(): void`

Output Displays the set HTML output

Output Displays the set HTML output

| # |

OpenCart API API documentation generated by ApiGen dev-master