Response Class Methods

The Response class provides the following methods:

addHeader adds a header to the Response object.
appendToLog adds a string to the end of the Web server log entry for this request.
clear removes any output that has been sent to a buffer.
end causes the Web server to stop processing the script and return the current result.
flush sends buffered output immediately.
getBuffered returns a Boolean indicating whether the response is being sent to a buffer.
getCacheControl returns the Cache Control header as a string. The Cache Control header controls whether proxy servers cache ASP output.
getCharSet returns a string describing the character set that will be used for the response.
getContentType returns a string that describes the content type of the response that is being sent to the client.
getCookies returns a CookieDictionary object that contains all of the cookies in the Request object.
getExpires returns an integer that indicates the number of minutes before the response that has been cached on the server will expire.
getExpiresAbsolute returns a date that indicates when the response that has been cached on the server will expire.
getStatus returns a string that indicates the status of the server. This status is described using a status code. Status codes are defined in the HTTP specification.
isClientConnected returns a Boolean that indicates whether the client has disconnected.
pics sets the pics label to the response header. The pics setting should be a properly formatted pics label.
redirect causes the client browser to attempt to connect to another URL.
setBuffered determines whether the response will be sent to a buffer.
setCacheControl establishes the Cache Control header for the response. The Cache Control header determines whether proxy servers can cache the response to a buffer.
setCharSet establishes the character set to use for the response.
setContentType establishes the content type of the response.
setExpires establishes the number of minutes until the response will become invalid.
setExpiresAbsolute establishes the date when the response will become invalid.
setStatus establishes the status code for the response.
write sends output to the client.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.