mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/** base classes for private implementations.
|
|
* https://github.com/azadkuh/qhttp
|
|
*
|
|
* @author amir zamani
|
|
* @version 2.0.0
|
|
* @date 2014-07-11
|
|
*/
|
|
|
|
#ifndef QHTTPBASE_HPP
|
|
#define QHTTPBASE_HPP
|
|
|
|
#include "qhttpfwd.hpp"
|
|
|
|
#include "qsocket.hpp"
|
|
#include <QHostAddress>
|
|
#include <QBasicTimer>
|
|
|
|
#include "http-parser/http_parser.h"
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
namespace qhttp {
|
|
namespace details {
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
struct HttpBase
|
|
{
|
|
QString iversion;
|
|
THeaderHash iheaders;
|
|
}; // struct HttpBase
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
struct HttpRequestBase : public HttpBase
|
|
{
|
|
QUrl iurl;
|
|
THttpMethod imethod;
|
|
}; // HttpRequestBase
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
struct HttpResponseBase : public HttpBase
|
|
{
|
|
TStatusCode istatus = ESTATUS_BAD_REQUEST;
|
|
|
|
HttpResponseBase() { iversion = "1.1"; }
|
|
}; // HttpResponseBase
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
} // namespace details
|
|
} // namespace qhttp
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
#endif // QHTTPBASE_HPP
|