print $query->header([ content_type , status , headers ])
Generates the HTTP header for the document.
The content type to return. Default is text/html.
The HTTP status code and description to return. Default is 200 OK.
Additional headers to include, such as Content-Length: 123.
Using named parameters, the syntax is:
print $query->header(-type=>' content_type ', -nph=>1, -status=>' status_code ', -expires=>' expcode ', -cookie=>' cookie ', -target=>' frame ', - header =>' value ');
Specify the content type.
Use headers for a no-parse-header script.
Specify the status code.
Specify an expiration timestamp (such as +3d for 3 days). Values for expcode are:
n seconds
n minutes
n hours
n days
n months
n years
At the specified time
Expire immediately.
Specify a cookie. The cookie may be a scalar value or an array reference.
Specify any HTTP header.
Write to specified frame.