(Quick Reference)

headers

目的
Purpose

Obtains the value of a named header

使用例
Examples

Reading a header's value:

Format? <g:header name="Content-Type" />

Or testing for existence:

<g:if test="${header(name: 'User-Agent')}">Hello</g:if>

詳細
Description

属性

Attributes
  • name - The name of the header

ソース
Source

{source:tag=ApplicationTagLib.header} {source}