Click or drag to resize
IResponder Interface
The interface for objects that can fill IResponse objects correctly for different types of content.

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

The IResponder type exposes the following members.

Methods
  NameDescription
Public methodAddCorsHeaders
Adds CORS headers to a successful response.
Public methodForbidden
Returns a response indicating that the request is not authorised.
Public methodSendAudio
Sends the audio back to the browser. The format of the audio is inferred from the MIME type.
Public methodSendBinary
Sends the bytes back to the browser.
Public methodSendImage
Sends a copy of the image in the correct format back to the browser.
Public methodSendJson
Formats the object as a JSON object and sends it via the response to the browser.
Public methodSendText(IRequest, IResponse, String, Encoding, String)
Configures the response object to send text back to the browser.
Public methodSendText(IRequest, IResponse, String, Encoding, String, Int32)
Configures the response object to send text back to the browser.
Top
See Also