The HTTPServiceRequest class / com.HTTPServiceRequest methods |
Defines a header for the HTTP response.
setResponseHeader( name STRING, value STRING )
The setResponseVersion() method sets (or replaces) the name and value of a HTTP response header.
The Content-Length header cannot be set, because it is computed internally according to the body size.
The method must be called before sending the response with one of sendResponse, sendTextResponse, sendXmlResponse, or beginXmlResponse and endXmlResponse methods.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.