Format: <g:header name="Content-Type" />
1. headers
1.1. Purpose
Obtains the value of a named header
1.2. Examples
Reading a header’s value:
Or testing for existence:
<g:if test="${header(name: 'User-Agent')}">Hello</g:if>
1.3. Description
Attributes
-
name
- The name of the header