Is there a way to retrieve request headers in server-side functions?

Hi,

I’ve checked the following document: http://orientdb.com/docs/3.0.x/admin/Functions-Server.html#request-object

I need to retrieve some http headers sent with my request by my web application, but apparently this functionality is not available in 3.0.29.

Is there a way to retrieve any header from the request?

Thanks in advance.
Christian

Found a solution to my own problem: looking at the source code of OHttpRequestWrapper, I found that it has a getHeaders() method not present in the documentation link I shared.

So I am able to retrieve any header with this code:

return request.getHeaders()["x-requested-with"];