260261262263264265266267268
} if (request.headers().containsKey(HttpHeaders.ACCEPT_ENCODING) && request.headers().get(HttpHeaders.ACCEPT_ENCODING) .contains("gzip") && HttpThread.COMPRESSIBLE.contains(resource.contentType())) { resource = new GzipResource(resource); } return resource; }
303132333435363738
public GZip() { super(new GZipStreamFactory(), new PackBase.ResourceWrapper() { public CommonsCompressCompressorResource wrap(Resource dest) { return new GZipResource(dest); } }); }