At Fri, 5 Apr 2002 18:19:47 -0500,
Brad Cox wrote:
> Does webricken provide a way to incrementally add to the response
> output, other than += which seems wasteful?
No, unfortunately. res.body has to be given as a string. res.body is
a writable string accessor and << is available. The following seems
little wasteful:
body = res.body
body << "<HTML>hello, world.</HTML>"
body << "<h1>Header</h1>"
body << "<p>blah, blah</p>"
body << "<p>and so forth</p>"
res['Content-Type'] = "text/html"
By the way, the name of this humble toolkit is WEBrick, not webricken :)
-- Gotoken