public function createHttpCompressor($acceptEncoding = null)
    {
        if (!$acceptEncoding) {
            $servers = $this->getRequest()->getServerParams();

            $acceptEncoding = isset($servers['HTTP_ACCEPT_ENCODING']) ? $servers['HTTP_ACCEPT_ENCODING'] : '';
        }

        return new HttpCompressor($acceptEncoding);
    }
public function createHttpCompressor($acceptEncoding = null)
    {
        if (!$acceptEncoding) {
            $servers = $this->getRequest()->getServerParams();

            $acceptEncoding = isset($servers['HTTP_ACCEPT_ENCODING']) ? $servers['HTTP_ACCEPT_ENCODING'] : '';
        }

        return new HttpCompressor($acceptEncoding);
    }
public function createHttpCompressor ( $ acceptEncoding = null ) { if ( ! $ acceptEncoding ) { $ servers = $ this -> getRequest ( ) -> getServerParams ( ) ; $ acceptEncoding = isset ( $ servers [ 'HTTP_ACCEPT_ENCODING' ] ) ? $ servers [ 'HTTP_ACCEPT_ENCODING' ] : '' ; } return new HttpCompressor ( $ acceptEncoding ) ; }
Create Compressor object.

@param  string $acceptEncoding The HTTP_ACCEPT_ENCODING param, the common is "gzip, deflate".

@return HttpCompressor
Create Compressor object .