QHttpServerConfiguration Class
The QHttpServerConfiguration class controls server parameters. More...
Header: | #include <QHttpServerConfiguration> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS HttpServer) target_link_libraries(mytarget PRIVATE Qt6::HttpServer) |
qmake: | QT += httpserver |
Since: | Qt 6.9 |
Public Functions
QHttpServerConfiguration(QHttpServerConfiguration &&other) | |
int | setRateLimitPerSecond(int maxRequests) |
class QHttpServerConfiguration & | operator=(QHttpServerConfiguration &&other) |
Detailed Description
Member Function Documentation
[constexpr noexcept]
QHttpServerConfiguration::QHttpServerConfiguration(QHttpServerConfiguration &&other)
Move-constructs this QHttpServerConfiguration from other
int QHttpServerConfiguration::setRateLimitPerSecond(int maxRequests)
Sets maxRequests as the maximum number of incoming requests per second per IP that will be accepted by QHttpServer. If the limit is exceeded, QHttpServer will respond with QHttpServerResponder::StatusCode::TooManyRequests.
See also rateLimitPerSecond() and QHttpServerResponder::StatusCode.
[noexcept default]
class QHttpServerConfiguration &QHttpServerConfiguration::operator=(QHttpServerConfiguration &&other)
Move-assigns other to this QHttpServerConfiguration.