Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Directive#tcollect and Directive1#collect #2253
This commit adds two new methods on
As an example, instead of writing:
we can now write this in one go using Directive1#transform:
Thank you for your pull request! After a quick sanity check one of the team will reply with 'OK TO TEST' to kick off our automated validation on Jenkins. This compiles the project, runs the tests, and checks for things like binary compatibility and source code formatting. When two team members have also manually reviewed and (perhaps after asking for some amendments) accepted your contribution, it should be good to be merged.
For more details about our contributing process, check out CONTRIBUTING.md - and feel free to ask!
Oct 12, 2018
@markus1189 The Java API works quite differently and some times is not possible to mimic the same API for both languages.
Yeah, I was under the impression that we had more docs on it in this section https://doc.akka.io/docs/akka-http/current/routing-dsl/directives/custom-directives.html but I see that we really don't so you can skip that then.
Too quick on the comment button, now I found at least
So adding a small section after that with some text about when it is useful to do