lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


<349b8d5e4d.wra1th@wra1th.plus.com> 
 <200504200738.53195.javier@guerrag.com>
In-Reply-To: <200504200738.53195.javier@guerrag.com>
X-Organization: Home
User-Agent: Messenger-Pro/1.00c (MsgServe/1.00a) (RISC-OS/5.08) POPstar/2.05
Reply-To: gavin@wra1th.plus.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

In message <200504200738.53195.javier@guerrag.com> you wrote:

> an example where it would be nice (but not essential) is in Xavante:  a 
> handler can generate HTTP response content in three ways:
> 
> 1) setting res.content to a string
> 2) setting res.content to an array of strings
> 3) calling httpd.send_res_data()
> 
> for small responses, option 1) is the easier; for bigger things it's nice to 
> use 2); and for huge, complex things 3) is the only way left.  losing some 
> nice things, like being able to set headers at any time (because the content 
> is sent at the end), and letting Xavante to handle the "Content-Length" 
> header needed to use persistent connections (with big performance gains)
> 
> with a scalable string implementation, usage 2) would be useless, so the 
> choice would be easier.  also, XML results would be easy to generate 
> efficiently, that would make it worthwhile to put the 'X' in SAJAX to good 
> use!

I use ropes for Weave (http://weave.riscos.org.uk/) which is just
a means of producing HTML, although the same code works for any
sort of markup generation.
 
-- 
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/