public void handleRequest(final HttpServerExchange exchange) throws Exception {
final List<String> res = exchange.getRequestHeaders().get(Headers.ACCEPT_ENCODING);
HttpHandler nextHandler = this.next;
if (res == null || res.isEmpty()) {
if (nextHandler != null) {
nextHandler.handleRequest(exchange);
} else {
//we don't have an identity handler
noEncodingHandler.handleRequest(exchange);
}
return;