Page MenuHomePhorge
Diviner Tech Docs AphrontHTTPProxyResponse

final class AphrontHTTPProxyResponse
Phorge Technical Documentation (Aphront)

Responds to a request by proxying an HTTP future.

NOTE: This is currently very inefficient for large responses, and buffers the entire response into memory before returning it. It should be updated to stream the response instead, but we need to complete additional infrastructure work first.

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.

public function setRequest($request)
Inherited

This method is not documented.
Parameters
$request
Return
wild

public function getRequest()
Inherited

This method is not documented.
Return
wild

final public function addContentSecurityPolicyURI($kind, $uri)
Inherited

This method is not documented.
Parameters
$kind
$uri
Return
wild

final public function setDisableContentSecurityPolicy($disable)
Inherited

This method is not documented.
Parameters
$disable
Return
wild

final public function addHeader($key, $value)
Inherited

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

public function getContentIterator()
Inherited

This method is not documented.
Return
wild

public function buildResponseString()

This method is not documented.
Return
wild

public function getHeaders()

This method is not documented.
Return
wild

private function newContentSecurityPolicyHeader()
Inherited

This method is not documented.
Return
wild

private function newContentSecurityPolicy($type, $defaults)
Inherited

This method is not documented.
Parameters
$type
$defaults
Return
wild

private function newContentSecurityPolicySource($uri)
Inherited

This method is not documented.
Parameters
$uri
Return
wild

public function setCacheDurationInSeconds($duration)
Inherited

This method is not documented.
Parameters
$duration
Return
wild

public function setCanCDN($can_cdn)
Inherited

This method is not documented.
Parameters
$can_cdn
Return
wild

public function setLastModified($epoch_timestamp)
Inherited

This method is not documented.
Parameters
$epoch_timestamp
Return
wild

public function setHTTPResponseCode($code)
Inherited

This method is not documented.
Parameters
$code
Return
wild

public function getHTTPResponseCode()

This method is not documented.
Return
wild

public function getHTTPResponseMessage()
Inherited

This method is not documented.
Return
wild

public function setFrameable($frameable)
Inherited

This method is not documented.
Parameters
$frameable
Return
wild

public static function processValueForJSONEncoding(&$value, $key)
Inherited

This method is not documented.
Parameters
&$value
$key
Return
wild

public static function encodeJSONForHTTPResponse($object)
Inherited

This method is not documented.
Parameters
array$object
Return
wild

protected function addJSONShield($json_response)
Inherited

This method is not documented.
Parameters
$json_response
Return
wild

public function getCacheHeaders()

This method is not documented.
Return
wild

private function formatEpochTimestampForHTTPHeader($epoch_timestamp)
Inherited

This method is not documented.
Parameters
$epoch_timestamp
Return
wild

protected function shouldCompressResponse()
Inherited

This method is not documented.
Return
wild

public function willBeginWrite()
Inherited

This method is not documented.
Return
wild

public function didCompleteWrite($aborted)
Inherited

This method is not documented.
Parameters
$aborted
Return
wild

public function setHTTPFuture($future)

This method is not documented.
Parameters
HTTPSFuture$future
Return
wild

public function getHTTPFuture()

This method is not documented.
Return
wild

private function readRequestHeaders()

This method is not documented.
Return
wild

private function readRequest()

This method is not documented.
Return
wild