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);
    }