class ServerApi (View source)

The default system api used to interact with the browser.

Methods

bool
isHeadersSent()

Tells if the headers have been sent and no more headers can be provided.

void
sendHeaderLine(string $line)

Adds a header line to be sent to the browser.

void
output(string $output)

Outputs the given string to the browser.

bool
isConnectionAborted()

Tells if the connection to the user have been terminated and no more output can be sent.

Details

bool isHeadersSent()

Tells if the headers have been sent and no more headers can be provided.

Return Value

bool True if no more headers can be provided, false otherwise

void sendHeaderLine(string $line)

Adds a header line to be sent to the browser.

Parameters

string $line The header line to send to browser

Return Value

void

void output(string $output)

Outputs the given string to the browser.

Parameters

string $output The string to output

Return Value

void

bool isConnectionAborted()

Tells if the connection to the user have been terminated and no more output can be sent.

Return Value

bool True if no more output can be sent, false otherwise