Re: [akka-user] Re: AKKA HTTP: Is this a valid use of Route.seal?

2017-03-16 Thread Alan Burlison
On 15/03/2017 16:26, 'Johannes Rudolph' via Akka User List wrote: yes, that's a valid use case. The route tree is usually traversed completely until a Route matches. But if you know that the search can be cut short, then `seal` is definitely a good solution. That's exactly the case here -

[akka-user] Re: AKKA HTTP: Is this a valid use of Route.seal?

2017-03-15 Thread 'Johannes Rudolph' via Akka User List
Hi Alan, yes, that's a valid use case. The route tree is usually traversed completely until a Route matches. But if you know that the search can be cut short, then `seal` is definitely a good solution. Another solution would be to use only `handleRejections` which would have the advantage that

[akka-user] Re: AKKA HTTP: Is this a valid use of Route.seal?

2017-03-08 Thread Alan Burlison
Anyone have any suggestions? Thanks! On 07/03/17 22:32, Alan Burlison wrote: I have an Akka HTTP route for a REST API that first checks the base path, then checks the user authentication is valid, adds some custom headers and extracts the base URI before processing the sub-routes. However if