Header.pm
NAME
Communiware::DE::Header - Dynamic element Header. Generates an HTTP header.
SYNOPSIS
<:Header name expression:>
DESCRIPTION
This dynamic element adds given header with given value to the list of http headers sent to user.
If current template is PAGE template (or included hereof) then HTTP header according to RFC 2616 is generated. If it is MAIL or MAILPERS template, then RFC 822 header, such as Subject or Reply-To is generated.
Header Location is treated specially, and results in changing HTTP status code to 302. Header WWW-Authenticate causes status to be changed to 401.
Header Expires is also treated specially. Instead of exact date it recieves
relative time specification in form NUMBERunit where unit is one of s
(seconds), m (minutes), h (hours), w(weeks), M(monthes)
and y (years) and sets
expiration time to given offset in future since time of page generation.
If header is Set-Cookie, than expiration time of cookie is processed using same rules as value of Expires header.
Value can be arbitrary experssion as described in Communiware::Expr documentation (just like Define or Subst dynamic elements)