From: Raindog <ra...@ma...> - 2010-12-27 19:32:23
|
On 12/26/2010 5:28 PM, Dean Michael Berris wrote: > On Mon, Dec 27, 2010 at 3:46 AM, Jeroen Habraken <vex...@gm...> wrote: > > On 26 December 2010 15:57, Dean Michael Berris <mik...@gm...> wrote: > >> On Fri, Dec 24, 2010 at 9:39 PM, Jeroen Habraken <vex...@gm...> wrote: > >>> Just ran into https://github.com/ry/http-parser, which might be nice > >>> to integrate. > >>> > >> > >> Interesting. Thanks Jeroen, I'll take a look at this at some point. > >> It's just been crazy for me lately. > >> > >> Can you give me at least a high-level idea of what I should be looking at here? > > > > Sure, this is a RFC compliant HTTP parser, and there are a couple of > > things which might be of interest. First of all, it's a switch-case > > style parser, thus the case's they've chosen might be of interest. > > Secondly, and more importantly, it comes with quite a neat test set > > which might help you in your TDD approach. > > > > Interesting. > > I see that it's written in C, but I'm not sure what license they use > for the code. > > That said, I already have an incremental parser in the library for > both requests and responses. I don't see why I'll need another > implementation in there. ;) > > /me was secretly hoping that it was written in Spirit. :P > > Thanks again Jeroen, I'll think more about it. > If his test cases are complete, it would be a nice way to test cpp-netlib. |