Page MenuHomePhorge
Diviner Tech Docs AphrontHTTPSink

abstract class AphrontHTTPSink
Phorge Technical Documentation (Aphront)

Abstract class which wraps some sort of output mechanism for HTTP responses. Normally this is just AphrontPHPHTTPSink, which uses "echo" and "header()" to emit responses.

Tasks

Writing Response Components

No methods for this task.

Emitting the Response

No methods for this task.

Other Methods

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

final public function setShowStackTraces($show_stack_traces)

This method is not documented.
Parameters
$show_stack_traces
Return
wild

final public function getShowStackTraces()

This method is not documented.
Return
wild

final public function writeHTTPStatus($code, $message)

Write an HTTP status code to the output.

Parameters
int$codeNumeric HTTP status code.
$message
Return
void

final public function writeHeaders($headers)

Write HTTP headers to the output.

Parameters
list<pair>$headersList of <name, value> pairs.
Return
void

final public function writeData($data)

Write HTTP body data to the output.

Parameters
string$dataBody data.
Return
void

final public function writeResponse($response)

Write an entire AphrontResponse to the output.

Parameters
AphrontResponse$responseThe response object to write.
Return
void

abstract protected function emitHTTPStatus($code, $message)

This method is not documented.
Parameters
$code
$message
Return
wild

abstract protected function emitHeader($name, $value)

This method is not documented.
Parameters
$name
$value
Return
wild

abstract protected function emitData($data)

This method is not documented.
Parameters
$data
Return
wild

abstract protected function isWritable()

This method is not documented.
Return
wild