IResponse Interface |
Namespace: VirtualRadar.Interface.WebServer
The IResponse type exposes the following members.
Name | Description | |
---|---|---|
ContentEncoding |
Gets or sets the encoding used in the response.
| |
ContentLength |
Gets or sets the length of the content to send back to the user.
| |
Cookies |
Gets the cookies to set on the response.
| |
MimeType |
Gets or sets the mime type to associate with the content.
| |
OutputStream |
Gets the stream that can be used to send data to the browser.
| |
StatusCode |
Gets or sets the HTTP status code to send back to the user.
|
Name | Description | |
---|---|---|
Abort |
Aborts the response without sending the content to the browser.
| |
AddHeader |
Adds a header to the response. If the header already exists then its value is overwritten.
| |
Close |
Closes the response, sending the content to the browser.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
EnableCompression |
Switches compression of the response, but only if the request indicates that the server supports a
compression encoding that we can support.
| |
Redirect |
Instructs the web server to redirect the browser to another URL. This sets StatusCode
to an appropriate value but does not close OutputStream.
| |
SetCookie |
Sets or updates a cookie in the collection of cookies to return to the caller.
|