for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Http\Message\Encoding;
/**
* Transform a regular stream into a chunked one.
*
* @author Joel Wurtz <[email protected]>
*/
class ChunkStream extends FilteredStream
{
* {@inheritdoc}
protected function readFilter()
return 'chunk';
}
protected function writeFilter()
return 'dechunk';
protected function fill()
parent::fill();
if ($this->stream->eof()) {
$this->buffer .= "0\r\n\r\n";