use of io.undertow.server.handlers.encoding.ContentEncodingRepository in project core-ng-project by neowu.
the class HTTPServer method handler.
private HttpHandler handler() {
HTTPServerIOHandler handler = new HTTPServerIOHandler(this.handler);
if (!gzip)
return handler;
GZipPredicate predicate = new GZipPredicate();
return new EncodingHandler(new ContentEncodingRepository().addEncodingHandler("gzip", new GzipEncodingProvider(), 100, predicate).addEncodingHandler("deflate", new DeflateEncodingProvider(), 10, predicate)).setNext(handler);
}
Aggregations