joyent/http-parser — pull request #80 by udp (2012-01-26 13:02:32+00:00)
Title: Add http_parser_parsing_headers function

This just wraps the internal `PARSING_HEADER` macro from http-parser.c.

The idea is that if `http_parser_parsing_headers` returns true, one can read complete lines rather than chunks to avoid receiving a partial URL/header field/header value in the callbacks. This simplified things quite a bit for me, at least.