So, this morning I've written a little class that help you with HTTP Request parse:
- static HttpRequest fromData (const QByteArray& data);
- static HttpRequest fromStream (QIODevice *buffer);
There's a couple of method that you can use to parse your request data, and some others method to retrieve headers, method type, url and body data.
Qt is used only for QHash, QByteArray and QIODevice classes, you've to implement all the "socket" logic, to handle your client request and response.
The Source code is available here: Qt4 Http Request Parser Source Code.