I'm writing an API using Lift and RestHelper. I need to be able to programmatically set the cache headers on different endpoints depending on the content being returned.
To override the default headers set in Boot.scala I'm calling S.setHeader from within a serveJx partial function. I would expect the served response to have the overridden headers set but the response only has the default headers.
If I implement the endpoint using serve with a partial function that creates a JsonResponse within the partial function the S.setHeader mechanism sets the header as expected.
Should I be able to override the default headers using the S object or is this not supported in RestHelper currently?
I've created a small example RestHelper app (blatently copied from the simply lift example) that demonstrates this and it is available on GitHub at:
The example RestHelper object is at:
Thanks in advance,
Steve Wells