flesh out filter_body for request parsing
commit3ae7a95b1109aa2486d64d838f49c46ec8efdb38
authorEric Wong <e@80x24.org>
Wed, 19 Apr 2017 22:16:00 +0000 (19 22:16 +0000)
committerEric Wong <e@80x24.org>
Sat, 1 Dec 2018 13:26:44 +0000 (1 13:26 +0000)
tree5bf934c8b4edd8ebce61714a097485d681d43ebd
parentcb000a31701d2f774bf476cfdc56e077bb2396fe
flesh out filter_body for request parsing

Relying on Kcar::Parser#body_bytes_left= is still more
efficient, but allowing filter_body to work for identity
request bodies should simplify server implementations
at the moment.

When parsing responses, identity request bodies will still fail
on filter_body, at least for now. It's always been that way, and
it might be easier-to-write backwards compatible code in case
people want to stick to an older version of kcar.
ext/kcar/kcar.rl
test/test_request_parser.rb