From: Michael D. <mi...@mi...> - 2007-12-12 22:19:26
|
Update: Mignon just committed into trunk (r339) support for parsing chunks, either in request or response content, for our synchronous HTTPMessage::receive() calls and also for the asynchronous HTTP*Reader classes. Take care, -Mike On Dec 10, 2007, at 6:40 PM, Michael Dickey wrote: > Dean and I have been talking on the boost development list about > ways to integrate Pion code into the current cpp-netlib structure. > Seemed like a good idea to move that discussion over to this list > instead. > > I think that the best starting point would be to focus on merging > over Pion's HTTPParser class: > > http://pion.atomiclabs.com/files/pion-net/net/doc/html/_h_t_t_p_parser_8hpp-source.html > http://pion.atomiclabs.com/files/pion-net/net/doc/html/_h_t_t_p_parser_8cpp-source.html > > It's an incremental parser that can be used for both 1.0 and 1.1, > and also for both requests and responses. It seems like you could > just reformat & rename it for boost's style standards, remove the > logging support, and use cpp-netlib's http::request and > http::response classes in favor of Pion's HTTPRequest and > HTTPResponse (so long as they support the same functionality). > > FYI: one major thing currently missing in the parser is being able > to parse HTTP/1.1 chunks. This is supported in the "Writer" classes > (see below) but not in our underlying parsing code. Someone is > working on this right now actually, and we will probably have it in > there by the end of the week. > ... |