Request.getHeaders
Request.getHeaders() -> map
Description
Return a Map of all HTTP request headers. Keys are normalized to lower case.
Request.getHeaders() /* Example: { accept: 'text/html,application/xhtml+xmlq=0.9' accept-encoding: 'gzip, deflate, br' cache-control: 'max-age=0' connection: 'keep-alive' upgrade-insecure-requests: '1' } */
The following headers are automatically removed:
accept-language
- seeRequest.languages()
cookie
- useSession
insteadhost
- seeRequest.url()
referer
- seeRequest.referrer()
user-agent
- seeRequest.userAgent()