public static function gzip(StreamInterface $input, StreamInterface $output) { $output->write(gzencode((string) $input)); return $output; }