http_parser: new add_parse method
commit1b0ee5826ef146a3e2647c40f3bc929d51d1b442
authorEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 00:04:51 +0000 (4 17:04 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 00:04:51 +0000 (4 17:04 -0700)
tree24cc8da08ddba2cada51afdf8bc91964c4ca4c39
parentf81aa02448b615c4d5fc4f6544c53289dae9d2ec
http_parser: new add_parse method

Combines the following sequence:

   http_parser.buf << socket.readpartial(0x4000)
   http_parser.parse

Into:

   http_parser.add_parse(socket.readpartial(0x4000))

It was too damn redundant otherwise...
ext/unicorn_http/unicorn_http.rl
lib/unicorn/http_request.rb