Add more expressiveness to vertx-web
Just an experiment, to test different approaches to bring more expressiveness to vertx-web route declaration.
Mostly :
map
in a functional way directly on routesintParam
, dateParam
becoming a simple corner casemap
with body / params / headers at the same time i.e.router.get("/...")
.withBody(MyBody.class)
.withParams(MyParams.class)
.map((body, params) -> { ... })
.send(200);
router.route("/api")
.consumes(...)
.get("/tests")
...