interface CustomValidator
This interface is used to add custom synchronous functions inside validation process. You can add it in HTTPRequestValidationHandler.
Author
Francesco Guardiani @slinkydeveloper
abstract fun validate(routingContext: RoutingContext): Unit
This function have to be synchronous. It doesn't return nothing if validation succedes, otherwise it throws ValidationException. Don't call routingContext.next() or routingContext.fail() from this function |