Package io.quarkus.vertx.http.runtime
Class HttpCompressionHandler
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.HttpCompressionHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
public class HttpCompressionHandler extends Object implements io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
A simple wrapping handler that removes theContent-Encoding: identityHTTP header if theContent-Typeheader is set and the value is a compressed media type as configured viaHttpBuildTimeConfig.compressMediaTypes.
-
-
Constructor Summary
Constructors Constructor Description HttpCompressionHandler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> routeHandler, Set<String> compressedMediaTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcompressIfNeeded(io.vertx.ext.web.RoutingContext context, Set<String> compressedMediaTypes)voidhandle(io.vertx.ext.web.RoutingContext context)
-