Click or drag to resize
IResponderSendText Method (IRequest, IResponse, String, Encoding, String, Int32)
Configures the response object to send text back to the browser.

Namespace: VirtualRadar.Interface.WebServer
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
void SendText(
	IRequest request,
	IResponse response,
	string text,
	Encoding encoding,
	string mimeType,
	int cacheSeconds
)

Parameters

request
Type: VirtualRadar.Interface.WebServerIRequest
The request object - must be supplied.
response
Type: VirtualRadar.Interface.WebServerIResponse
The response object to fill in - must be supplied.
text
Type: SystemString
The text to send back - defaults to an empty string.
encoding
Type: System.TextEncoding
The encoding to use when sending the text - defaults to UTF8.
mimeType
Type: SystemString
The MimeType to use when sending the text - defaults to MimeType.Text.
cacheSeconds
Type: SystemInt32
The number of seconds that the browser should cache the response for. Set to 0 to tell the browser not to cache the response.
See Also