[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/aphront/response/ -> AphrontPlainTextResponse.php (source)

   1  <?php
   2  
   3  final class AphrontPlainTextResponse extends AphrontResponse {
   4  
   5    public function setContent($content) {
   6      $this->content = $content;
   7      return $this;
   8    }
   9  
  10    public function buildResponseString() {
  11      return $this->content;
  12    }
  13  
  14    public function getHeaders() {
  15      $headers = array(
  16        array('Content-Type', 'text/plain; charset=utf-8'),
  17      );
  18  
  19      return array_merge(parent::getHeaders(), $headers);
  20    }
  21  
  22  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1