vertx / io.vertx.rxjava.ext.web.handler / ResponseContentTypeHandler

# ResponseContentTypeHandler

`open class ResponseContentTypeHandler : 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 io.vertx.rxjava.ext.web.handler.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 io.vertx.ext.web.handler.ResponseContentTypeHandler non RX-ified interface using Vert.x codegen.

### Constructors

<init> | `ResponseContentTypeHandler(delegate: ResponseContentTypeHandler)`

### Properties

__TYPE_ARG | `static val __TYPE_ARG: TypeArg<ResponseContentTypeHandler>`

### Functions

create | `open static fun create(): ResponseContentTypeHandler` Create a response content type handler. `open static fun create(disableFlag: String): ResponseContentTypeHandler` Create a response content type handler with a custom disable flag.
equals | `open fun equals(other: Any?): Boolean`
getDelegate | `open fun getDelegate(): ResponseContentTypeHandler`
handle | `open fun handle(arg0: RoutingContext): Unit`
hashCode | `open fun hashCode(): Int`
newInstance | `open static fun newInstance(arg: ResponseContentTypeHandler): ResponseContentTypeHandler`
toString | `open fun toString(): String`