| only for RuBoard |
The System.Web.HttpResponse class (or response intrinsic object) enables access to the HTTP response stream as it is being formed . This class writes information to the client browser. Table A.11 shows the properties of the HttpResponse class, and Table A.12 shows its methods .
| Property Name | Description |
|---|---|
| Buffer | Gets or sets a value that indicates if the output stream should be buffered before sending or not. |
| BufferOutput | Gets or sets a value that indicates whether the output stream should be buffered before sending after the page completes processing. |
| Cache | Gets the caching properties of the page (expiration time, privacy, and vary clauses). |
| CacheControl | Sets the CacheControl HTTP header to Public or Private. |
| Charset | Gets or sets the HTTP character set of the output stream. |
| ContentEncoding | Gets or sets the character (or maybe content) encoding of the output stream. |
| ContentType | Gets or sets the MIME type for the output stream. |
| Cookies | Gets the HttpCookie collection sent by the response. |
| Expires | Gets or sets the number of minutes before a page cached on a client browser expires. |
| ExpiresAbsolute | Gets or sets the date and time when cached content on the client browser expires. |
| IsClientConnected | Gets a value indicating if the client is still connected to the server. |
| Output | Enables output of text to the outgoing response stream. |
| OutputStream | Enables binary output to the outgoing response stream. Used for methods that require a System.IO.Stream object reference to be written to. |
| StatusCode | Gets or sets the HTTP status code of the output returned to the client. The default is 200. |
| StatusDescription | Gets or sets the HTTP status string of the output returned to the client. |
| SuppressContent | Gets or sets a value indicating whether to send HTTP content to the client. |
| Method Name | Description |
|---|---|
| AddCacheItemDependencies | Accepts an array of keys to other cache items, making the validity of a cached item dependent on various other items in the cache. |
| AddCacheItemDependency | Makes the validity of a cached item dependent on another item in the cache. |
| AddFileDependencies | Adds a group of filenames to the collection of filenames on which the current response is dependent. |
| AppendHeader | Adds an HTTP header to the output stream. |
| AppendToLog | Adds custom information to the IIS log file. |
| ApplyAppPathModifier | Appends the session ID to the virtual path . |
| BinaryWrite | Writes binary information to the output stream. |
| Clear | Clears buffered information from the output stream. |
| ClearContent | Clears all buffered content output from the output stream. |
| ClearHeaders | Clears all buffered headers from the output stream. |
| Close | Closes the socket connection to a client. |
| End | Sends all buffered output to the client and stops execution of the page. |
| Flush | Flushes buffered content. |
| Pics | Appends a Platform for Internet Content Selection (PICS)-Label HTTP header to the output stream. |
| Redirect | Directs the client to a new URL. |
| RemoveOutputCacheItem | Removes all cached items related to the specified path from the cache. |
| Write | Writes the specified values to the output stream. |
| WriteFile | Writes a file directly to the output stream. |
| only for RuBoard |