Page MenuHomeClusterLabs Projects
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

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