PHP 8.2.30
Preview: ChunkStream.php Size: 518 B
/home/byroehnu/easetack.com/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
{
    protected function readFilter(): string
    {
        return 'chunk';
    }

    protected function writeFilter(): string
    {
        return 'dechunk';
    }

    protected function fill(): void
    {
        parent::fill();

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

Directory Contents

Dirs: 1 × Files: 9

Name Size Perms Modified Actions
Filter DIR
- drwxrwxrwx 2025-05-16 16:14:48
Edit Download
518 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
909 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
386 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
913 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
759 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
5.55 KB lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
932 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
930 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
909 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).