|
| Server (QObject *parent=nullptr) |
|
virtual | ~Server () |
|
QString | application () const |
|
bool | autoReload () const |
|
int | bufferSize () const |
|
QString | chdir () const |
|
QString | chdir2 () const |
|
QString | chownSocket () const |
|
QVariantMap | config () const noexcept |
|
int | cpuAffinity () const |
|
int | exec (Cutelyst::Application *app=nullptr) |
|
QStringList | fastcgiSocket () const |
|
QString | gid () const |
|
quint32 | http2HeaderTableSize () const |
|
QStringList | http2Socket () const |
|
bool | httpsH2 () const |
|
QStringList | httpSocket () const |
|
QStringList | httpsSocket () const |
|
QStringList | ini () const |
|
QStringList | json () const |
|
bool | lazy () const |
|
int | listenQueue () const |
|
bool | master () const |
|
bool | noInitgroups () const |
|
void | parseCommandLine (const QStringList &args) |
|
QString | pidfile () const |
|
QString | pidfile2 () const |
|
qint64 | postBuffering () const |
|
qint64 | postBufferingBufsize () const |
|
QString | processes () const |
|
bool | reusePort () const |
|
void | setApplication (const QString &application) |
|
void | setAutoReload (bool enable) |
|
void | setBufferSize (int size) |
|
void | setChdir (const QString &chdir) |
|
void | setChdir2 (const QString &chdir2) |
|
void | setChownSocket (const QString &chownSocket) |
|
void | setCpuAffinity (int value) |
|
void | setFastcgiSocket (const QStringList &fastcgiSocket) |
|
void | setGid (const QString &gid) |
|
void | setHttp2HeaderTableSize (quint32 headerTableSize) |
|
void | setHttp2Socket (const QStringList &http2Socket) |
|
void | setHttpsH2 (bool enable) |
|
void | setHttpSocket (const QStringList &httpSocket) |
|
void | setHttpsSocket (const QStringList &httpsSocket) |
|
void | setIni (const QStringList &files) |
|
void | setJson (const QStringList &files) |
|
void | setLazy (bool enable) |
|
void | setListenQueue (int size) |
|
void | setMaster (bool enable) |
|
void | setNoInitgroups (bool enable) |
|
void | setPidfile (const QString &file) |
|
void | setPidfile2 (const QString &file) |
|
void | setPostBuffering (qint64 size) |
|
void | setPostBufferingBufsize (qint64 size) |
|
void | setProcesses (const QString &process) |
|
void | setReusePort (bool enable) |
|
void | setSocketAccess (const QString &socketAccess) |
|
void | setSocketRcvbuf (int value) |
|
void | setSocketSndbuf (int value) |
|
void | setSocketTimeout (int timeout) |
|
void | setSoKeepalive (bool enable) |
|
void | setStaticMap (const QStringList &staticMap) |
|
void | setStaticMap2 (const QStringList &staticMap) |
|
void | setTcpNodelay (bool enable) |
|
void | setThreads (const QString &threads) |
|
void | setTouchReload (const QStringList &files) |
|
void | setUid (const QString &uid) |
|
void | setUmask (const QString &value) |
|
void | setUpgradeH2c (bool enable) |
|
void | setUsingFrontendProxy (bool enable) |
|
void | setWebsocketMaxSize (int value) |
|
QString | socketAccess () const |
|
int | socketRcvbuf () const |
|
int | socketSndbuf () const |
|
int | socketTimeout () const |
|
bool | soKeepalive () const |
|
bool | start (Cutelyst::Application *app=nullptr) |
|
QStringList | staticMap () const |
|
QStringList | staticMap2 () const |
|
void | stop () |
|
bool | tcpNodelay () const |
|
QString | threads () const |
|
QStringList | touchReload () const |
|
QString | uid () const |
|
QString | umask () const |
|
bool | upgradeH2c () const |
|
bool | usingFrontendProxy () const |
|
int | websocketMaxSize () const |
|
| QObject (QObject *parent) |
|
QBindable< QString > | bindableObjectName () |
|
bool | blockSignals (bool block) |
|
const QObjectList & | children () const const |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
|
void | dumpObjectInfo () const const |
|
void | dumpObjectTree () const const |
|
QList< QByteArray > | dynamicPropertyNames () const const |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (Qt::FindChildOptions options) const const |
|
bool | inherits (const char *className) const const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isQuickItemType () const const |
|
bool | isWidgetType () const const |
|
bool | isWindowType () const const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const const |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const const |
|
QVariant | property (const char *name) const const |
|
| Q_CLASSINFO (Name, Value) |
|
| Q_EMIT Q_EMIT |
|
| Q_ENUM (...) |
|
| Q_ENUM_NS (...) |
|
| Q_ENUMS (...) |
|
| Q_FLAG (...) |
|
| Q_FLAG_NS (...) |
|
| Q_FLAGS (...) |
|
| Q_GADGET Q_GADGET |
|
| Q_GADGET_EXPORT (EXPORT_MACRO) |
|
| Q_INTERFACES (...) |
|
| Q_INVOKABLE Q_INVOKABLE |
|
| Q_MOC_INCLUDE Q_MOC_INCLUDE |
|
| Q_NAMESPACE Q_NAMESPACE |
|
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) |
|
| Q_OBJECT Q_OBJECT |
|
| Q_PROPERTY (...) |
|
| Q_REVISION Q_REVISION |
|
| Q_SET_OBJECT_NAME (Object) |
|
| Q_SIGNAL Q_SIGNAL |
|
| Q_SIGNALS Q_SIGNALS |
|
| Q_SLOT Q_SLOT |
|
| Q_SLOTS Q_SLOTS |
|
T | qobject_cast (const QObject *object) |
|
T | qobject_cast (QObject *object) |
|
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setObjectName (QAnyStringView name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | setProperty (const char *name, QVariant &&value) |
|
bool | signalsBlocked () const const |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
|
QThread * | thread () const const |
|
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
typedef | QObjectList |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const QMetaMethod &signal) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | disconnectNotify (const QMetaMethod &signal) |
|
bool | isSignalConnected (const QMetaMethod &signal) const const |
|
int | receivers (const char *signal) const const |
|
QObject * | sender () const const |
|
int | senderSignalIndex () const const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
The Server class implements a web server that can either act on it’s own or behind another server like nginx or Apache. This class is used by cutelystd4-qt6 but can also be integrated into your own application to start() and stop() a Cutelyst server.
Configuration file options
All command line options from cutelystd4-qt6 have their counterparts as properties of this class. Using the server
section of your application configuration file you can set this properties via configuration file options. Simply use the property names as configuration keys.
Example
[server]
http_socket="localhost:3001"
threads=4
Logging
The Cutelyst server uses the following logging categories:
- cutelyst.server
- cutelyst.server.engine
- cutelyst.server.fork
- cutelyst.server.proto
- cutelyst.server.fcgi
- cutelyst.server.http
- cutelyst.server.http2
- cutelyst.server.websocket
- cutelyst.server.socket
- cutelyst.server.staticmap
- cutelyst.server.systemd
- cutelyst.server.tcp
- cutelyst.server.tcpbalancer
- cutelyst.server.unix
- cutelyst.server.windows
- See also
- Logging with Cutelyst
Definition at line 59 of file server.h.