For those reading this in 2025, using Azure Function model v4 and NodeJS 18: request.headers
currently returns an object with a javascript Map, the latter containing the headers list. To get the header value, use the Map.get() method: request.headers.get('x-forwarded-for')