HttpDaemonRspResponse

0th

Percentile

The HttpDaemonRspResponse class

Package: R.rsp Class HttpDaemonRspResponse Object ~~| ~~+--RspResponse ~~~~~~~| ~~~~~~~+--FileRspResponse ~~~~~~~~~~~~| ~~~~~~~~~~~~+--HttpDaemonRspResponse Directly known subclasses: public static class HttpDaemonRspResponse extends FileRspResponse An instance of class HttpDaemonRspResponse, which extends the RspResponse 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.

Keywords
classes, IO
Usage
HttpDaemonRspResponse(httpDaemon=NULL, ...)
Arguments
httpDaemon
An HttpDaemon object.
...
Not used.
Details

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.

Fields and Methods

Methods: rll{ flush Flushes the buffer of an HttpDaemonRspResponse to the HttpDaemon. write Writes strings to an HttpDaemonRspResponse buffer. } Methods inherited from FileRspResponse: flush, getAbsolutePath, getName, getOutput, getPath, write Methods inherited from RspResponse: flush, import, write Methods inherited from Object: $, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, registerFinalizer, save

See Also

HttpDaemon.

Aliases
  • HttpDaemonRspResponse
Documentation reproduced from package R.rsp, version 0.4.1, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.