Major update to parser.rl
commit9d81073a9238c892c39ca51b05ebb22a05fe0675
authorRyan Dahl <ry@lakshmi.local>
Sat, 22 Mar 2008 15:24:33 +0000 (22 16:24 +0100)
committerRyan Dahl <ry@lakshmi.local>
Sat, 22 Mar 2008 15:24:33 +0000 (22 16:24 +0100)
treea65fa5de142a0eb81ce210a060e570ad61536d93
parenteb87a28b1e30f2303bc5c11684ba50ec87f01427
Major update to parser.rl

I'm changing Zed's original design of having a callback for each element in
the parser. Rather there will be two callbacks for headers: one for unknown
headers and one for known headers - there is an enum which defines the known
headers.

The idea here is to easily add preallocated global variables for often seen
header values in the ruby binding. This has only been done so far with
Content-Type, but I will add many more soon.

This change simplifies ebb.c greatly.
src/ebb.c
src/ebb.h
src/ebb_ruby.c
src/parser.h
src/parser.rl