\Anax\ResponseCResponseBasic

Handling a response.

Summary

Methods
Properties
Constants
setHeader()
checkIfHeadersAlreadySent()
sendHeaders()
redirect()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$headers
N/A

Properties

$headers

$headers : 

Properties

Type

Methods

setHeader()

setHeader(string  $header) : $this

Set headers.

Parameters

string $header

type of header to set

Returns

$this

checkIfHeadersAlreadySent()

checkIfHeadersAlreadySent() : void

Check if headers are already sent and throw exception if it is.

Throws

\Exception

sendHeaders()

sendHeaders() : $this

Send headers.

Returns

$this

redirect()

redirect(string  $url) : void

Redirect to another page.

Parameters

string $url

to redirect to