Hello, I've been playing around with ry's HTTP Parser (part of node.js) and went ahead and wrote a small Lua wrapper around it. Any feedback is appreciated. You can get this parser here:
http://github.com/brimworks/lua-http-parser/downloads Eventually I plan to get it added to luarocks repository, but was hoping to get some feedback first. Here are some interesting points: * All callbacks are made from Lua, so yield's across callbacks should work (although I haven't verified this). * Lot's of assert() checks, compile with -DNDEBUG to disable these asserts. * Handles both HTTP requests and responses. Note that I've also created a wrapper around libev you can get here: http://github.com/brimworks/lua-ev (you can also get it via luarocks install lib-ev) At some point in the future I was hoping to integrate lib-ev with copas, but that will have to wait for another day ;-). BTW, I know that luasockets comes with an HTTP parser, but I'm hoping that this C implementation will be faster (still need to benchmark to find out for sure). Thanks, -Brian -- Brian Maher >> Glory to God << _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/