Page MenuHomePhabricator

AphrontPlainTextResponse.php
No OneTemporary

AphrontPlainTextResponse.php

<?php
final class AphrontPlainTextResponse extends AphrontResponse {
private $content;
public function setContent($content) {
$this->content = $content;
return $this;
}
public function buildResponseString() {
return $this->content;
}
public function getHeaders() {
$headers = array(
array('Content-Type', 'text/plain; charset=utf-8'),
);
return array_merge(parent::getHeaders(), $headers);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Nov 11, 1:53 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8242336
Default Alt Text
AphrontPlainTextResponse.php (445 B)

Event Timeline