[wx-dev] wxHTTP rewrite?
Falk Tristram
ftristram at gmx.de
Fri May 2 04:24:36 PDT 2008
Hi all,
as I am relatively new to this list, don't blame me if I missed some resources/articles about this topic, but the wx-wiki seems very empty about "HTTP" and "3.0.x-rewrite". So I am trying this way.
To short things up, wxHTTP is not beautiful :
1. To many magic-values
2. Code-Mixing
3. Name should be wxHTTPClient ?
My suggestion :
1. generic class wxHTTP, containing :
* Enumerations, all basic protocol stuff
* Error/ErrorToString -Functions
2. wxHTTPHeader derived from wxHTTP :
* Get/Set ..., ( so hopefully no need for (old) wxHTTP::SetHeader() )
* The QHttpHeader is a good inspiration, how it should be done.
3. wxHTTPMessage derived from wxHTTPHeader :
* The body ( data ) - body handling
*?De-/Serialization - Functions ; ?Compression deflate, gzip
4. wxHTTPClient, (wxHTTPServer) :
Rewrite to fit into the new structure.
This is a first draft, how it could be done. I am open for any suggestion!
Please tell me what the current project status is about this topic. Perhaps someone is already doing this.
Greetz
Falk
PS: I going to wirte this code anyway, but it would be shame not to contribute it.
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
More information about the wx-dev
mailing list