| 1 | <?php |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 2 | |||
| 3 | namespace ClickHouseDB\Transport; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Class StreamRead |
||
|
0 ignored issues
–
show
|
|||
| 7 | * @package ClickHouseDB\Transport |
||
|
0 ignored issues
–
show
|
|||
| 8 | */ |
||
| 9 | class StreamRead extends Stream |
||
| 10 | { |
||
| 11 | 1 | public function isWrite() |
|
|
0 ignored issues
–
show
|
|||
| 12 | { |
||
| 13 | 1 | return false; |
|
| 14 | } |
||
|
0 ignored issues
–
show
|
|||
| 15 | public function applyGzip() |
||
|
0 ignored issues
–
show
|
|||
| 16 | { |
||
| 17 | // stream_filter_append($this->source, 'zlib.deflate', STREAM_FILTER_READ, ['window' => 30]); |
||
| 18 | $this->enableGzipHeader(); |
||
| 19 | } |
||
| 20 | } |
||
| 21 |