Click or drag to resize
IResponse Interface
The interface for objects that describe the response to a request.

Namespace: VirtualRadar.Interface.WebServer
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IResponse : IDisposable

The IResponse type exposes the following members.

Properties
  NameDescription
Public propertyContentEncoding
Gets or sets the encoding used in the response.
Public propertyContentLength
Gets or sets the length of the content to send back to the user.
Public propertyCookies
Gets the cookies to set on the response.
Public propertyMimeType
Gets or sets the mime type to associate with the content.
Public propertyOutputStream
Gets the stream that can be used to send data to the browser.
Public propertyStatusCode
Gets or sets the HTTP status code to send back to the user.
Top
Methods
  NameDescription
Public methodAbort
Aborts the response without sending the content to the browser.
Public methodAddHeader
Adds a header to the response. If the header already exists then its value is overwritten.
Public methodClose
Closes the response, sending the content to the browser.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodEnableCompression
Switches compression of the response, but only if the request indicates that the server supports a compression encoding that we can support.
Public methodRedirect
Instructs the web server to redirect the browser to another URL. This sets StatusCode to an appropriate value but does not close OutputStream.
Public methodSetCookie
Sets or updates a cookie in the collection of cookies to return to the caller.
Top
See Also