for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Preetender\Routing\Response;
/**
* Class TextPlainResponse
* @package Preetender\Routing\Response
*/
final class TextPlainResponse extends BaseResponse
{
* Inform headers for text requests
*
* @var array
protected $headers = [];
* Format and return to requester
* @return mixed
public function render()
$this->response->setContent($this->wrapped->render());
$this->response->headers->add($this->headers);
$this->response->prepare($this->request);
$this->response->send();
}