Rename most classes to remove the 'Q' prefix.
This commit is contained in:
@@ -33,7 +33,7 @@ QSimpleHttpClient::QSimpleHttpClient(QTcpSocket *socket)
|
||||
onReadyRead();
|
||||
}
|
||||
|
||||
void QSimpleHttpClient::sendHeaders(const QByteArray &method, const QByteArray &path, const QHttpSocket::HeaderMap &headers)
|
||||
void QSimpleHttpClient::sendHeaders(const QByteArray &method, const QByteArray &path, const HttpSocket::HeaderMap &headers)
|
||||
{
|
||||
QByteArray data = method + " " + path + " HTTP/1.0\r\n";
|
||||
for (auto i = headers.constBegin(); i != headers.constEnd(); ++i) {
|
||||
@@ -59,7 +59,7 @@ void QSimpleHttpClient::onReadyRead()
|
||||
// Parse the headers if the double CRLF sequence was found
|
||||
int index = mBuffer.indexOf("\r\n\r\n");
|
||||
if (index != -1) {
|
||||
QHttpParser::parseResponseHeaders(mBuffer.left(index), mStatusCode, mStatusReason, mHeaders);
|
||||
HttpParser::parseResponseHeaders(mBuffer.left(index), mStatusCode, mStatusReason, mHeaders);
|
||||
|
||||
mHeadersParsed = true;
|
||||
mData.append(mBuffer.mid(index + 4));
|
||||
|
||||
Reference in New Issue
Block a user