Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/diffusion/response/DiffusionMercurialResponse.php
12241 views
1
<?php
2
3
final class DiffusionMercurialResponse extends AphrontResponse {
4
5
private $content;
6
7
public function setContent($content) {
8
$this->content = $content;
9
return $this;
10
}
11
12
public function buildResponseString() {
13
return $this->content;
14
}
15
16
public function getHeaders() {
17
$headers = array(
18
array('Content-Type', 'application/mercurial-0.1'),
19
);
20
return array_merge(parent::getHeaders(), $headers);
21
}
22
23
public function getCacheHeaders() {
24
return array();
25
}
26
27
public function getHTTPResponseCode() {
28
return 200;
29
}
30
31
}
32
33