| HttpDaemonResponse {R.httpd} | R Documentation |
Package: R.httpd
Class HttpDaemonResponse
Object
~~|
~~+--AbstractPageResponse
~~~~~~~|
~~~~~~~+--HttpDaemonResponse
Directly known subclasses:
public static class HttpDaemonResponse
extends AbstractPageResponse
An instance of class HttpDaemonResponse, which extends the
AbstractPageResponse class, is a buffer for output (response) sent
to an HttpDaemon. It provides a method write() for writing
output and a method flush() for flush the written output to
the HTTP daemon.
HttpDaemonResponse(httpDaemon=NULL, ...)
httpDaemon |
An HttpDaemon object. |
... |
Not used. |
The purpose of this method is to provide partial writing of HTTP response such that, for instance, a web browser can display parts of an HTML page while the rest is generated. Note that this is only supported by the HTTP v1.1 protocol.
Note: The minimalistic HTTP daemon (written in Tcl) used internally currently only supports HTTP v1.0. In other words, although this class is used already, the output is only flushed at the end.
Methods:
flush | Flushes the buffer of an HttpDaemonResponse to the HttpDaemon. | |
getPath | Gets the path of the directory of the current response. | |
write | Writes strings to an HttpDaemonResponse buffer. |
Methods inherited from AbstractPageResponse:
flush, getPath, headerDone, write
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstanciationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save
Henrik Bengtsson (http://www.braju.com/R/)