for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PlugHttp\Body;
use PlugHttp\Utils\ContentHelper;
class TextPlain implements Handler, Advancer
{
private $handler;
public function getBody($content)
return $content;
}
public function next(Handler $handler)
$this->handler = $handler;
public function handle($server)
if (ContentHelper::contentIs($server, 'text/plain')) {
return $this->getBody($server->getContent());
return $this->handler->handle($server);