vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 535 forks source link

Move the routing context implementation to a separate method instead of failing the context within the constructor #2666

Closed vietj closed 4 weeks ago

vietj commented 4 weeks ago

Motivation:

The implementation of routing context might fail the context within its constructor forcing the router to check the context status before routing the request.

Changes:

Create package private route method that performs the preliminary checks of the routing context and calls the routing context handler chain whenever the checks have passed