[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/aphront/sink/ -> AphrontHTTPSink.php (summary)

Abstract class which wraps some sort of output mechanism for HTTP responses. Normally this is just @{class:AphrontPHPHTTPSink}, which uses "echo" and "header()" to emit responses. Mostly, this class allows us to do install security or metrics hooks in the output pipeline.

File Size: 119 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  writeHTTPStatus()
  writeHeaders()
  writeData()
  writeResponse()

Functions
Functions that are not part of a class:

writeHTTPStatus($code, $message = '')   X-Ref
Write an HTTP status code to the output.

param: int Numeric HTTP status code.
return: void

writeHeaders(array $headers)   X-Ref
Write HTTP headers to the output.

param: list<pair> List of <name, value> pairs.
return: void

writeData($data)   X-Ref
Write HTTP body data to the output.

param: string Body data.
return: void

writeResponse(AphrontResponse $response)   X-Ref
Write an entire @{class:AphrontResponse} to the output.

param: AphrontResponse The response object to write.
return: void



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1