From: Jeroen H. <vex...@gm...> - 2010-12-24 13:39:55
|
Just ran into https://github.com/ry/http-parser, which might be nice to integrate. Jeroen |
From: Dean M. B. <mik...@gm...> - 2010-12-26 14:58:19
|
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? -- Dean Michael Berris about.me/deanberris |
From: Jeroen H. <vex...@gm...> - 2010-12-26 19:46:29
|
Hi, 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. > -- > Dean Michael Berris > about.me/deanberris Jeroen |
From: Dean M. B. <mik...@gm...> - 2010-12-27 01:28:47
|
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. -- Dean Michael Berris about.me/deanberris |
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. |
From: Dean M. B. <mik...@gm...> - 2010-12-28 05:14:52
|
On Tue, Dec 28, 2010 at 3:32 AM, Raindog <ra...@ma...> wrote: > On 12/26/2010 5:28 PM, Dean Michael Berris wrote: >> >> 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. > Yeah, but... if it's licensed under a non-BSL compatible license then I'm not entirely sure that even the test cases would be usable in cpp-netlib. I'll look at it more at a later time. -- Dean Michael Berris about.me/deanberris |