QHttpServerConfiguration Class
Die Klasse QHttpServerConfiguration steuert Serverparameter. Mehr...
Kopfzeile: | #include <QHttpServerConfiguration> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS HttpServer) target_link_libraries(mytarget PRIVATE Qt6::HttpServer) |
qmake: | QT += httpserver |
Seit: | Qt 6.9 |
Öffentliche Funktionen
QHttpServerConfiguration() | |
QHttpServerConfiguration(const QHttpServerConfiguration &other) | |
QHttpServerConfiguration(QHttpServerConfiguration &&other) | |
~QHttpServerConfiguration() | |
quint32 | rateLimitPerSecond() const |
void | setRateLimitPerSecond(quint32 maxRequests) |
void | swap(QHttpServerConfiguration &other) |
QHttpServerConfiguration & | operator=(QHttpServerConfiguration &&other) |
QHttpServerConfiguration & | operator=(const QHttpServerConfiguration &other) |
Verwandte Nicht-Mitglieder
bool | operator!=(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs) |
bool | operator==(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs) |
Dokumentation der Memberfunktionen
QHttpServerConfiguration::QHttpServerConfiguration()
Default konstruiert ein QHttpServerConfiguration-Objekt.
Eine solche Konfiguration hat die folgenden Werte:
- Ratenbegrenzung ist deaktiviert
QHttpServerConfiguration::QHttpServerConfiguration(const QHttpServerConfiguration &other)
Kopiert diese QHttpServerConfiguration.
[noexcept]
QHttpServerConfiguration::QHttpServerConfiguration(QHttpServerConfiguration &&other)
Verschieben-konstruiert diese QHttpServerConfiguration aus other
[noexcept]
QHttpServerConfiguration::~QHttpServerConfiguration()
Zerstörer.
quint32 QHttpServerConfiguration::rateLimitPerSecond() const
Gibt die maximale Anzahl der eingehenden Anfragen pro Sekunde pro IP zurück, die vom Server akzeptiert werden.
Siehe auch setRateLimitPerSecond().
void QHttpServerConfiguration::setRateLimitPerSecond(quint32 maxRequests)
Legt maxRequests als maximale Anzahl von eingehenden Anfragen pro Sekunde und IP fest, die von QHttpServer akzeptiert werden. Wenn das Limit überschritten wird, antwortet QHttpServer mit QHttpServerResponder::StatusCode::TooManyRequests.
Siehe auch rateLimitPerSecond() und QHttpServerResponder::StatusCode.
[noexcept]
void QHttpServerConfiguration::swap(QHttpServerConfiguration &other)
Tauscht diese Konfiguration mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.
[noexcept]
QHttpServerConfiguration &QHttpServerConfiguration::operator=(QHttpServerConfiguration &&other)
Verschieben - ordnet other dieser QHttpServerConfiguration zu.
QHttpServerConfiguration &QHttpServerConfiguration::operator=(const QHttpServerConfiguration &other)
Kopiert other auf diese QHttpServerConfiguration.
Verwandte Nicht-Mitglieder
[noexcept]
bool operator!=(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs)
Gibt true
zurück, wenn lhs und rhs nicht den gleichen Satz an Konfigurationsparametern haben.
[noexcept]
bool operator==(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs)
Gibt true
zurück, wenn lhs und rhs den gleichen Satz an Konfigurationsparametern haben.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.