public function setRequest($request)Inherited
public function setRequest($request)
Inherited
Parameters
$request |
Return
wild |
public function getRequest()Inherited
public function getRequest()
Inherited
Return
wild |
final public function addContentSecurityPolicyURI($kind, $uri)Inherited
final public function addContentSecurityPolicyURI($kind, $uri)
Inherited
Parameters
$kind | ||
$uri |
Return
wild |
final public function setDisableContentSecurityPolicy($disable)Inherited
final public function setDisableContentSecurityPolicy($disable)
Inherited
Parameters
$disable |
Return
wild |
final public function addHeader($key, $value)Inherited
final public function addHeader($key, $value)
Inherited
Parameters
$key | ||
$value |
Return
wild |
public function getContentIterator()Inherited
public function getContentIterator()
Inherited
Return
wild |
public function buildResponseString()Inherited
public function buildResponseString()
Inherited
Return
wild |
public function getHeaders()Inherited
public function getHeaders()
Inherited
Return
wild |
private function newContentSecurityPolicyHeader()Inherited
private function newContentSecurityPolicyHeader()
Inherited
Return
wild |
private function newContentSecurityPolicy($type, $defaults)Inherited
private function newContentSecurityPolicy($type, $defaults)
Inherited
Parameters
$type | ||
$defaults |
Return
wild |
private function newContentSecurityPolicySource($uri)Inherited
private function newContentSecurityPolicySource($uri)
Inherited
Parameters
$uri |
Return
wild |
public function setCacheDurationInSeconds($duration)Inherited
public function setCacheDurationInSeconds($duration)
Inherited
Parameters
$duration |
Return
wild |
public function setCanCDN($can_cdn)Inherited
public function setCanCDN($can_cdn)
Inherited
Parameters
$can_cdn |
Return
wild |
public function setLastModified($epoch_timestamp)Inherited
public function setLastModified($epoch_timestamp)
Inherited
Parameters
$epoch_timestamp |
Return
wild |
public function setHTTPResponseCode($code)Inherited
public function setHTTPResponseCode($code)
Inherited
Parameters
$code |
Return
wild |
public function getHTTPResponseCode()Inherited
public function getHTTPResponseCode()
Inherited
Return
wild |
public function getHTTPResponseMessage()Inherited
public function getHTTPResponseMessage()
Inherited
Return
wild |
public function setFrameable($frameable)Inherited
public function setFrameable($frameable)
Inherited
Parameters
$frameable |
Return
wild |
public static function processValueForJSONEncoding(&$value, $key)Inherited
public static function processValueForJSONEncoding(&$value, $key)
Inherited
Parameters
&$value | ||
$key |
Return
wild |
public static function encodeJSONForHTTPResponse($object)Inherited
public static function encodeJSONForHTTPResponse($object)
Inherited
Parameters
array | $object |
Return
wild |
protected function addJSONShield($json_response)Inherited
protected function addJSONShield($json_response)
Inherited
Parameters
$json_response |
Return
wild |
public function getCacheHeaders()Inherited
public function getCacheHeaders()
Inherited
Return
wild |
private function formatEpochTimestampForHTTPHeader($epoch_timestamp)Inherited
private function formatEpochTimestampForHTTPHeader($epoch_timestamp)
Inherited
Parameters
$epoch_timestamp |
Return
wild |
protected function shouldCompressResponse()Inherited
protected function shouldCompressResponse()
Inherited
Return
wild |
public function willBeginWrite()Inherited
public function willBeginWrite()
Inherited
Return
wild |
public function didCompleteWrite($aborted)Inherited
public function didCompleteWrite($aborted)
Inherited
Parameters
$aborted |
Return
wild |
public function setIsExternal($external)Inherited
public function setIsExternal($external)
Inherited
Parameters
$external |
Return
wild |
public function __construct()Inherited
public function __construct()
Inherited
Return
this | //Implicit.// |
public function setURI($uri)Inherited
public function setURI($uri)
Inherited
Parameters
$uri |
Return
wild |
public function getURI()
public function getURI()
Return
wild |
public function shouldStopForDebugging()Inherited
public function shouldStopForDebugging()
Inherited
Return
wild |
public function setCloseDialogBeforeRedirect($close)Inherited
public function setCloseDialogBeforeRedirect($close)
Inherited
Parameters
$close |
Return
wild |
public function getCloseDialogBeforeRedirect()Inherited
public function getCloseDialogBeforeRedirect()
Inherited
Return
wild |
public static function getURIForRedirect($uri, $is_external)Inherited
public static function getURIForRedirect($uri, $is_external)
Inherited
AphrontRedirectResponse
Format a URI for use in a "Location:" header.
Verifies that a URI redirects to the expected type of resource (local or remote) and formats it for use in a "Location:" header.
The HTTP spec says "Location:" headers must use absolute URIs. Although browsers work with relative URIs, we return absolute URIs to avoid ambiguity. For example, Chrome interprets "Location: /\evil.com" to mean "perform a protocol-relative redirect to evil.com".
Parameters
string | $uri | URI to redirect to. |
bool | $is_external | True if this URI identifies a remote resource. |
Return
string | URI for use in a "Location:" header. |