vertx / io.vertx.reactivex.ext.web.api.validation / HTTPRequestValidationHandler / addHeaderParamWithCustomTypeValidator

# addHeaderParamWithCustomTypeValidator

`open fun addHeaderParamWithCustomTypeValidator(headerName: String, validator: ParameterTypeValidator, required: Boolean, allowEmptyValue: Boolean): HTTPRequestValidationHandler`

Add a header parameter with a custom type validator. For more informations about how to construct built-in or custom type validator, check out io.vertx.reactivex.ext.web.api.validation.ParameterTypeValidator

### Parameters

`headerName` - expected header namery

`validator` - type validator

`required` - true if parameter is required

`allowEmptyValue` - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour: `io.vertx.reactivex.ext.web.api.validation.ParameterValidationRule#allowEmptyValue`

Return
this handler