Update QtWebapp to 1.7.11

This commit is contained in:
Felix Kauselmann
2020-07-30 12:28:05 +02:00
parent 3de099491f
commit b9c48cc4b6
31 changed files with 796 additions and 307 deletions

View File

@ -16,6 +16,8 @@
#include <QUuid>
#include "httpglobal.h"
namespace stefanfrings {
/**
This object represents a single HTTP request. It reads the request
from a TCP socket and provides getters for the individual parts
@ -46,7 +48,7 @@ public:
Constructor.
@param settings Configuration settings
*/
HttpRequest(QSettings* settings);
HttpRequest(const QSettings* settings);
/**
Destructor.
@ -59,7 +61,7 @@ public:
until the status is RequestStatus::complete or RequestStatus::abort.
@param socket Source of the data
*/
void readFromSocket(QTcpSocket* socket);
void readFromSocket(QTcpSocket *socket);
/**
Get the status of this reqeust.
@ -207,9 +209,9 @@ private:
QByteArray boundary;
/** Temp file, that is used to store the multipart/form-data body */
QTemporaryFile tempFile;
QTemporaryFile* tempFile;
/** Parset he multipart body, that has been stored in the temp file. */
/** Parse the multipart body, that has been stored in the temp file. */
void parseMultiPartFile();
/** Sub-procedure of readFromSocket(), read the first line of a request. */
@ -232,4 +234,6 @@ private:
};
} // end of namespace
#endif // HTTPREQUEST_H