mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
7dfb9f1967
* initial commit of webconfig * update example config with webconfig and fix format of file update debian postinst script for install example config
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#ifndef QTHTTPREQUEST_H
|
|
#define QTHTTPREQUEST_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <QHash>
|
|
#include <QUrl>
|
|
|
|
class QtHttpServer;
|
|
|
|
class QtHttpRequest : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QtHttpRequest (QtHttpServer * parent);
|
|
|
|
int getRawDataSize (void) const;
|
|
QUrl getUrl (void) const;
|
|
QString getCommand (void) const;
|
|
QByteArray getRawData (void) const;
|
|
QList<QByteArray> getHeadersList (void) const;
|
|
|
|
QByteArray getHeader (const QByteArray & header) const;
|
|
|
|
public slots:
|
|
void setUrl (const QUrl & url);
|
|
void setCommand (const QString & command);
|
|
void addHeader (const QByteArray & header, const QByteArray & value);
|
|
void appendRawData (const QByteArray & data);
|
|
|
|
private:
|
|
QUrl m_url;
|
|
QString m_command;
|
|
QByteArray m_data;
|
|
QtHttpServer * m_serverHandle;
|
|
QHash<QByteArray, QByteArray> m_headersHash;
|
|
};
|
|
|
|
#endif // QTHTTPREQUEST_H
|