Class ResponseContentTypeHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>

    public class ResponseContentTypeHandler
    extends Object
    implements PlatformHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
    A handler which sets the response content type automatically according to the best Accept header match. The header is set only if:
    • no object is stored in the routing context under the name ResponseContentTypeHandler
    • a match is found
    • the header is not present already
    • content length header is absent or set to something different than zero

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.