We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We currently have this method: https://ratpack.io/manual/current/api/ratpack/handling/Chain.html#when-ratpack.func.Predicate-ratpack.func.Action-
It allows you to conditionally route based on request time decisions. This ticket would add the following to chain:
default Chain when(boolean test, Action<? super Chain> action) throws Exception { if (test) { action.execute(this); } return this; }
This would effectively be sugar for conditionally adding to the chain at “build time”.
The text was updated successfully, but these errors were encountered:
08c2107
No branches or pull requests
We currently have this method: https://ratpack.io/manual/current/api/ratpack/handling/Chain.html#when-ratpack.func.Predicate-ratpack.func.Action-
It allows you to conditionally route based on request time decisions. This ticket would add the following to chain:
This would effectively be sugar for conditionally adding to the chain at “build time”.
The text was updated successfully, but these errors were encountered: