Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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_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.)



I don't think Dahl takes credit for all of this code:

"Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: