Page MenuHomePhabricator

final class AphrontPHPHTTPSink
Phabricator Technical Documentation (Aphront)

Concrete HTTP sink which uses "echo" and "header()" to emit data.

Tasks

Writing Response Components

No methods for this task.

Emitting the Response

No methods for this task.

Other Methods

  • final public function writeHTTPStatus($code, $message) — Write an HTTP status code to the output.
  • final public function writeHeaders($headers) — Write HTTP headers to the output.
  • final public function writeData($data) — Write HTTP body data to the output.
  • final public function writeResponse($response) — Write an entire @{class:AphrontResponse} to the output.
  • protected function emitHTTPStatus($code, $message)
  • protected function emitHeader($name, $value)
  • protected function emitData($data)
  • protected function isWritable()

Methods

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