Page MenuHomePhorge
Diviner Tech Docs AphrontIsolatedHTTPSink

final class AphrontIsolatedHTTPSink
Phorge Technical Documentation (Aphront)

Isolated HTTP sink for testing.

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)
Inherited

This method is not documented.
Parameters
$show_stack_traces
Return
wild

final public function getShowStackTraces()
Inherited

This method is not documented.
Return
wild

final public function writeHTTPStatus($code, $message)
Inherited

AphrontHTTPSink

Write an HTTP status code to the output.

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

final public function writeHeaders($headers)
Inherited

AphrontHTTPSink

Write HTTP headers to the output.

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

final public function writeData($data)
Inherited

AphrontHTTPSink

Write HTTP body data to the output.

Parameters
string$dataBody data.
Return
void

final public function writeResponse($response)
Inherited

AphrontHTTPSink

Write an entire AphrontResponse to the output.

Parameters
AphrontResponse$responseThe response object to write.
Return
void

protected function emitHTTPStatus($code, $message)

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

protected function emitHeader($name, $value)

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

protected function emitData($data)

This method is not documented.
Parameters
$data
Return
wild

protected function isWritable()

This method is not documented.
Return
wild

public function getEmittedHTTPStatus()

This method is not documented.
Return
wild

public function getEmittedHeaders()

This method is not documented.
Return
wild

public function getEmittedData()

This method is not documented.
Return
wild