Hi Fabrice, There is currently no way to specify these headers via annotations. It may indeed be tricky, because there are many cases in which the headers are dynamically generated (such as in your example: concat(..)). Did you try the web:response-header function [1]? Cheers, Christian [1] http://docs.basex.org/wiki/Web_Module#web:response-header On Mon, Nov 30, 2015 at 3:07 PM, Etanchaud Fabrice <Fabrice.Etanchaud@horanet.com> wrote:
Dear all,
When I want to set response headers (for example to force a “save as…”),
I currently have to write a specific response before the response body :
<rest:response>
<http:response>
<http:header name="Content-Type" value="text/comma-separated-values; charset=utf-8"/>
<http:header name="Content-Disposition" value="attachment; filename={concat($base, '_Parthenay.csv')}"/>
</http:response>
</rest:response>
Is there an annotation to set header values directly in the function declaration ?
Best regards,
Fabrice