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 static const char *httpStatusMessage(quint16 status,
int *len =
nullptr);
124 bool initApplication();
136 bool postForkApplication();
141 [[nodiscard]]
Headers &defaultHeaders();
143 EnginePrivate *d_ptr;
153 virtual bool init() = 0;