Kevin,
actually this is something that spray should be able to do itself.
I've just added ticket for this:
https://github.com/spray/spray/issues/254
The latest nightlies come with a completely new URI model (much improved over what we had with M7), which already supports URI resolution as defined by RFC 3986 (
http://tools.ietf.org/html/rfc3986#section-5.2). With M7 you'll have to write you own resolution logic (which is not hard).
Until spray supports Location header resolution itself you are probably best off with a small custom directive that wraps the relevant parts of your route structure and relies on `mapRequest` to change an potentially existing Location header to its resolved counterpart.
HTH and cheers,
Mathias
---
mat...@spray.io
http://spray.io
> --
> You received this message because you are subscribed to the Google Groups "spray-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
spray-user+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>