mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Update QtWebapp to 1.7.11
This commit is contained in:
12
third_party/QtWebApp/httpserver/httprequest.h
vendored
12
third_party/QtWebApp/httpserver/httprequest.h
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user