undertow-io/undertow — pull request #264 by andreipet (2014-10-31 14:38:05+00:00)
Title: RoutingHandler minor improvement

1. If requested DELETE /test1 and this handler does not contain any routes for DELETE, now (my code) it is searched if any route for /test1 was defined before calling invalidMethodHandler. Before the handler was always called; non uniform because after adding the route DELETE /test2, the code will search for a match for /test1 (defined by other http methods).

2. If I don't want to expose 405 (to be stealthy) or just for improving performance, I can now skip the matching done by allMethodsMatcher by setting invalidMethodHandler to null (before it was possible but will cause an exception and no call to fallbackHandler).

Thank you.