5#ifndef CUTELYST_ENGINE_H
6#define CUTELYST_ENGINE_H
8#include <Cutelyst/Headers>
9#include <Cutelyst/cutelyst_global.h>
11#include <QHostAddress>
35 Application *
app()
const;
60 QVariantMap
opts()
const;
89 virtual quint64
time();
109 bool lastWasLetter =
false;
110 for (
int i = 0; i < key.
size(); ++i) {
114 lastWasLetter =
false;
115 }
else if (lastWasLetter) {
118 lastWasLetter =
true;
132 bool lastWasLetter =
false;
133 for (
int i = 0; i < key.
size(); ++i) {
137 lastWasLetter =
false;
138 }
else if (lastWasLetter) {
141 lastWasLetter =
true;
149 Q_DECL_DEPRECATED_X(
"Will be removed in new major release")
150 static const
char *httpStatusMessage(quint16 status,
int *len =
nullptr);
193 EnginePrivate *d_ptr;
197 friend class Application;
198 friend class Response;
204 virtual
bool init() = 0;
The Cutelyst Application.
static QString camelCaseHeader(const QString &headerKey)
static QVariantMap loadJsonConfig(const QString &filename)
Engine(Application *app, int workerCore, const QVariantMap &opts)
static void camelCaseByteArrayHeader(QByteArray &key)
bool initApplication()
initApplication
int workerCore() const
Each worker process migth have a number of worker cores (threads), a single process with two worker t...
virtual int workerId() const =0
The id is the number of the spawned engine process, a single process workerId = 0,...
bool postForkApplication()
postForkApplication
bool isZeroWorker() const
void setConfig(const QVariantMap &config)
void processRequestAsync(Cutelyst::EngineRequest *request)
void processRequest(EngineRequest *request)
QVariantMap config(const QString &entity) const
user configuration for the application
Application * app() const
application
Headers & defaultHeaders()
static QVariantMap loadIniConfig(const QString &filename)
The Cutelyst namespace holds all public Cutelyst API.
bool isLetter() const const
QChar toLower() const const