lua-users home
lua-l archive

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


On Jan 29, 2010, at 2:39 PM, Ignacio Burgueño wrote:

> Indeed. That's on my todo list. Learn how to do chunked transfers with Kepler, Wsapi and Orbit.

FWIW, Nanoki [1] does both chunked encoding and decoding:

http://dev.alt.textdrive.com/browser/HTTP/HTTP.lua#L128
http://dev.alt.textdrive.com/browser/HTTP/HTTP.lua#L324

Chunked responses requires HTTP/1.1. Something to keep in mind when generating responses to random clients.

While on the subject of HTTP:

http://github.com/ry/http-parser

Bonus link, to sanity check an HTTP implementation:

http://redbot.org/

[1] http://alt.textdrive.com/nanoki/