2 ms·
A look at node's HTTP parsing code, 1500 lines of hand-coded and rather pretty C, makes it clear that Ryan Dahl cares a lot about HTTP in node doing the Right T
by pjscott 15y ago
A look at node's HTTP parsing code, 1500 lines of hand-coded and rather pretty C, makes it clear that Ryan Dahl cares a lot about HTTP in node doing the Right Thing.
https://github.com/joyent/http-parser/blob/master/http_parser.c https://github.com/joyent/http-parser/blob/master/http_parse...
(This is also very handy for people writing HTTP servers and clients in other languages, since it's independent of node, and really fast and feature-complete.)
- csytan 15y agoI don't think Dahl takes credit for all of this code: "Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev"