request:header(
'User-Agent')
Dear all,
I do not see an option to obtain the headers from the HTTP request from inside webapp function. Just like in the example:
declare
%rest:GET
%rest:path('tests-html')
???%rest:headers('User-Agent')???
%output:method('html')
function page-main:start-empty(
???$user-agent as xs:string???
) as element(html) {
...
}
Is this possible?
BR