baswerc / routes

Java Library for Routing HTTP Requests
Apache License 2.0
12 stars 5 forks source link

Add a RuntimeException to skip the current route #5

Open sniffertine opened 6 years ago

sniffertine commented 6 years ago

In some cases, what you want to do is not to redirect the request but skip current routing evaluation (like continue in loops).

Maybe you could add a RuntimeException to skip the current route and let other routes process the request.