This requires a bunch of hacks though, as the impl that makes it work in akka-http is the HeaderMagnet infra which we do not have immediately available in akka-http-core, and I'm not sure if we want to have it there.
We can make it work using some smarts however making it possible for Java should likely use the partial function style as we suggest anyway for the routing DSL for it.
At least the documentation should mention that it won't work this way.
Most helpful comment
At least the documentation should mention that it won't work this way.