Page MenuHomec4science

AphrontPlainTextResponse.php
No OneTemporary

File Metadata

Created
Sat, Nov 30, 12:46

AphrontPlainTextResponse.php

<?php
final class AphrontPlainTextResponse extends AphrontResponse {
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);
}
}

Event Timeline