| ryah ( @ 2009-11-21 16:45:00 |
New HTTP Parser
I've implemented a new HTTP/1.1 request and response parser by hand. (My previous parser was written with the help of Ragel.) It requires 124 bytes per HTTP connection, makes zero allocations, has no dependencies, is nearly optimal in its use of CPU instructions, interruptible on any character, has extensive tests, and is MIT licensed.
README
http_parser.h
http_parser.c
(Only one user at the moment: I've just merged it into Node.)
I've implemented a new HTTP/1.1 request and response parser by hand. (My previous parser was written with the help of Ragel.) It requires 124 bytes per HTTP connection, makes zero allocations, has no dependencies, is nearly optimal in its use of CPU instructions, interruptible on any character, has extensive tests, and is MIT licensed.
README
http_parser.h
http_parser.c
(Only one user at the moment: I've just merged it into Node.)