Response Class extending Object

/ Responsible for responding to the web client. This class is used for setting headers and cookies /

Class Methods

Sets the cookie with the given name to the given value.
The clients web client is alerted of this request and will create the cookie on the local machine.
You require a CookiePermission with write access to set cookies

function setCookie(string name, string value) : void

Sets a response header

function setHeader(string name, string value) : void

Sets the response code for example 200 OK or 404 Not found

function setResponseCode(number code) : void