http_parser: add clear method, deprecate reset
commit62c844e343978f233e4f2567fb344411c39e263c
authorEric Wong <normalperson@yhbt.net>
Wed, 5 Jan 2011 22:06:00 +0000 (5 14:06 -0800)
committerEric Wong <normalperson@yhbt.net>
Wed, 5 Jan 2011 23:09:05 +0000 (5 15:09 -0800)
tree00f196f0c7a20fc43f92568ae0c8e1b6cb83c9b9
parentbd397ee11b60243ef15c5558c4309e46e27e6192
http_parser: add clear method, deprecate reset

But allows small optimizations to be made to avoid
constant/instance variable lookups later :)
ext/unicorn_http/unicorn_http.rl
lib/unicorn/http_request.rb
test/unit/test_http_parser.rb
test/unit/test_http_parser_ng.rb