[Development] QHttp removal

Jeremy Lainé jeremy.laine at m4x.org
Wed Jan 4 18:13:12 CET 2012


Le Jan 4, 2012 à 11:47 AM, Peter Hartmann a écrit :

> On 01/03/2012 01:07 PM, ext Thiago Macieira wrote:
>> On Tuesday, 3 de January de 2012 09.53.41, Jonas M. Gastal wrote:
>>> As for removing them entirely yes, it would require changes in the HTTP
>>> socket  engine and QAuthenticator. But given that both of them use
>>> QHttpResponseHeader I see no reason to duplicate the code in both classes,
>>> perphaps it would be preferable to simply strip the not used functionality
>>> from the existing QHttpResponseHeader class?
>> 
>> I'm pretty sure that the functionality exists in QNetworkRequestPrivate plus
>> the feeding of line by line, found in the QNAM's HTTP engine. We don't need to
>> keep even the QHttpResponseHeader class.
> 
> I also think the only reason for the old header classes from QHttp to 
> still exist is that it is used inside QtNetwork, ideally we want to get 
> rid of them altogether and have only one code path for the header files 
> (i.e. the one in QNAM)...
> 

If it's possible I would really appreciate having a publicly-available class for incrementally parsing HTTP requests or responses (with or without the initial line).

The use case I have is a Qt-based HTTP-server, but there are probably others..

Jeremy


More information about the Development mailing list