Class ResponseContentTypeHandler

java.lang.Object
io.vertx.reactivex.ext.web.handler.ResponseContentTypeHandler
All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, PlatformHandler

public class ResponseContentTypeHandler extends Object implements io.vertx.lang.rx.RxDelegate, PlatformHandler, Handler<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 RX-ified interface using Vert.x codegen.