%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/jalalj2hb/www/G/vendor/php-http/message/src/Encoding/
Upload File :
Create Path :
Current File : /home/jalalj2hb/www/G/vendor/php-http/message/src/Encoding/ChunkStream.php

<?php

namespace Http\Message\Encoding;

/**
 * Transform a regular stream into a chunked one.
 *
 * @author Joel Wurtz <joel.wurtz@gmail.com>
 */
class ChunkStream extends FilteredStream
{
    /**
     * {@inheritdoc}
     */
    protected function readFilter()
    {
        return 'chunk';
    }

    /**
     * {@inheritdoc}
     */
    protected function writeFilter()
    {
        return 'dechunk';
    }

    /**
     * {@inheritdoc}
     */
    protected function fill()
    {
        parent::fill();

        if ($this->stream->eof()) {
            $this->buffer .= "0\r\n\r\n";
        }
    }
}

Zerion Mini Shell 1.0