HttpDaemonResponse          package:R.httpd          R Documentation

_T_h_e _H_t_t_p_D_a_e_m_o_n_R_e_s_p_o_n_s_e _c_l_a_s_s

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     HttpDaemonResponse(httpDaemon=NULL, ...)

_A_r_g_u_m_e_n_t_s:

httpDaemon: An 'HttpDaemon' object.

     ...: Not used.

_D_e_t_a_i_l_s:

     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. _

_F_i_e_l_d_s _a_n_d _M_e_t_h_o_d_s:

     *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

_A_u_t_h_o_r(_s):

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

_S_e_e _A_l_s_o:

     'HttpDaemon'.

