<cfheader>

Generates custom HTTP response headers to return to the client.

Usage

<cfheader
    [charset=string]
    [statustext=string]
    [statuscode=number]
    [name=string]
    [value=string]
>

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
charset
(string, optional)

The character encoding in which to encode the header value.

        For more information on character encodings, see:
        www.w3.org/International/O-charset.html.
statustext
(string, optional)

Text that explains the status code. This attribute is used in conjunction with the statusCode attribute.

statuscode
(number, optional)

A number that sets the HTTP status code.

name
(string, optional)

A name for the header.

value
(string, optional)

A value for the HTTP header. This attribute is used in conjunction with the name attribute.

Examples

There are currently no examples for this tag.