[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Jurnal PSCP
/
plugins
/
paymethod
/
paypal
/
vendor
/
php-http
/
message
/
src
/
Encoding
/
[
Home
]
File: 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"; } } }