addHTTPHeader

void response.addHTTPHeader ( String key, String value )

Description

Add HTTP header to response.

Parameters

  • key Name of the header, as a string.
  • value Value associated with the header, as a string.

Return Values

Returns void.

Change Log

Version Description
4.5 Available for all editions.

Examples

Add HTTP Header

 // Adds the HTTP Header Set-Cookie with a value
 // of someCookieValue

 response.addHTTPHeader( "Set-Cookie" , "someCookieValue");

See Also