Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/aphront/response/AphrontPlainTextResponse.php
12241 views
1
<?php
2
3
final class AphrontPlainTextResponse 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', 'text/plain; charset=utf-8'),
19
);
20
21
return array_merge(parent::getHeaders(), $headers);
22
}
23
24
}
25
26