Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorVCSResponse

final class PhabricatorVCSResponse
Phabricator Technical Documentation (Repositories)

In Git, there appears to be no way to send a message which will be output by git clone http://..., although the response code is visible. We send the message in a header which is visible with "GIT_CURL_VERBOSE" if you know where to look.

In Mercurial, the HTTP status response message is printed to the console, so we send human-readable text there.

In Subversion, we can get it to print a custom message if we send an invalid/unknown response code, although the output is ugly and difficult to read. For known codes like 404, it prints a canned message.

All VCS binaries ignore the response body; we include it only for completeness.

Methods

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()

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 __construct($code, $message)

This method is not documented.
Parameters
$code
$message
Return
this//Implicit.//

public function getMessage()

This method is not documented.
Return
wild