9 * @author Christian Weiske <cweiske@cweiske.de>
10 * @copyright 2014 Christian Weiske
11 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
12 * @link http://cweiske.de/grauphel.htm
14 namespace OCA\Grauphel\Response;
21 * @author Christian Weiske <cweiske@cweiske.de>
22 * @copyright 2014 Christian Weiske
23 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
24 * @version Release: @package_version@
25 * @link http://cweiske.de/grauphel.htm
27 class TextResponse extends \OCP\AppFramework\Http\Response
31 public function __construct($text)
33 $this->setStatus(\OCP\AppFramework\Http::STATUS_OK);
34 $this->addHeader('Content-Type', 'text/plain; charset=utf-8');
38 public function render()