Filter
2 years ago
ChunkStream.php
2 years ago
CompressStream.php
6 months ago
DechunkStream.php
2 years ago
DecompressStream.php
6 months ago
DeflateStream.php
6 months ago
FilteredStream.php
6 months ago
GzipDecodeStream.php
6 months ago
GzipEncodeStream.php
6 months ago
InflateStream.php
6 months ago
DechunkStream.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaHttp\Message\Encoding; |
| 4 | |
| 5 | /** |
| 6 | * Decorate a stream which is chunked. |
| 7 | * |
| 8 | * Allow to decode a chunked stream |
| 9 | * |
| 10 | * @author Joel Wurtz <joel.wurtz@gmail.com> |
| 11 | */ |
| 12 | class DechunkStream extends FilteredStream |
| 13 | { |
| 14 | /** |
| 15 | * {@inheritdoc} |
| 16 | */ |
| 17 | protected function readFilter() |
| 18 | { |
| 19 | return 'dechunk'; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * {@inheritdoc} |
| 24 | */ |
| 25 | protected function writeFilter() |
| 26 | { |
| 27 | return 'chunk'; |
| 28 | } |
| 29 | } |
| 30 |