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);
118 bool initApplication();
130 bool postForkApplication();
135 [[nodiscard]]
Headers &defaultHeaders();
137 EnginePrivate *d_ptr;
147 virtual bool init() = 0;
The Cutelyst namespace holds all public Cutelyst API.
The Cutelyst application.
virtual int workerId() const =0
bool isZeroWorker() const