http_parser_init() did not initialize the http_parser.on_fragment.
The standard has it as *<TEXT, exlcuding CR, LF> and a response with no reason phrase was found in the wild.
Also only allow single digits in the HTTP version. Need multiple digits? Convince me.
Changed skip_body() from a function to a marco. This is rather hacky and should be dealt with better in the future. Also add handling for callback on_message_begin.
Instead of returning a boolean and calling assert() in main(), test.c now calls assert() as soon as possible. This will require gdb to know what is failing but that was probably already true before and this way uses a lot less code. I also added a conditional to the parser which, perhaps, splits input more efficiently into request and responses. I'm playing around with this and it will likely change again in the future.
And much more: * Begin the framework for parsing HTTP responses * Modify the test code with the new layout * Remove EBB_ prefix and use just HTTP_ * Start simple new Makefile Currently the test passes but it is only checking HTTP requests. I get the feeling that it is much slower than before, although I have no solid evidence for this.