vertx / io.vertx.rxjava.ext.web.api.validation / HTTPRequestValidationHandler / addExpectedContentType

addExpectedContentType

open fun addExpectedContentType(contentType: String): HTTPRequestValidationHandler

Add an expected content type of request. It's not needed to add application/json, application/xml, multipart/form-data and application/x-www-form-urlencoded

Parameters

contentType - expected content type of file

Return
this handler