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


I’ve checked the following document:

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.

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"];