7 #include <Cutelyst/Headers>
8 #include <Cutelyst/cutelyst_export.h>
10 #include <QHostAddress>
48 [[nodiscard]]
virtual int workerId()
const = 0;
57 [[nodiscard]]
int workerCore()
const;
66 [[nodiscard]]
inline bool isZeroWorker()
const;
71 [[nodiscard]] QVariantMap opts()
const;
79 [[nodiscard]] QVariantMap config(
const QString &entity)
const;
84 void setConfig(
const QVariantMap &config);
89 [[nodiscard]]
static QVariantMap loadIniConfig(
const QString &filename);
94 [[nodiscard]]
static QVariantMap loadJsonConfig(
const QString &filename);
107 Q_DECL_DEPRECATED_X(
"Will be removed in new major release")
108 static const
char *httpStatusMessage(quint16 status,
int *len =
nullptr);
125 bool initApplication();
137 bool postForkApplication();
142 [[nodiscard]]
Headers &defaultHeaders();
144 EnginePrivate *d_ptr;
154 virtual
bool init() = 0;
159 return !workerId() && !workerCore();
The Cutelyst application.
virtual int workerId() const =0
The Cutelyst namespace holds all public Cutelyst API.