QHttpServerConfiguration Class
QHttpServerConfiguration クラスは、サーバーのパラメータを制御します。詳細...
ヘッダ | #include <QHttpServerConfiguration> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS HttpServer) target_link_libraries(mytarget PRIVATE Qt6::HttpServer) |
qmake: | QT += httpserver |
以来: | Qt 6.9 |
パブリック関数
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) |
関連する非メンバー
bool | operator!=(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs) |
bool | operator==(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs) |
メンバ関数の説明
QHttpServerConfiguration::QHttpServerConfiguration()
Default は QHttpServerConfiguration オブジェクトを構築します。
このような設定は以下の値を持ちます:
- レート制限は無効
QHttpServerConfiguration::QHttpServerConfiguration(const QHttpServerConfiguration &other)
この QHttpServerConfiguration をコピー構築します。
[noexcept]
QHttpServerConfiguration::QHttpServerConfiguration(QHttpServerConfiguration &&other)
からこの QHttpServerConfiguration を移動します。other
[noexcept]
QHttpServerConfiguration::~QHttpServerConfiguration()
破壊者。
quint32 QHttpServerConfiguration::rateLimitPerSecond() const
サーバが受け付けた、IP 毎秒の着信リクエストの最大数を返します。
setRateLimitPerSecond()も参照 ください。
void QHttpServerConfiguration::setRateLimitPerSecond(quint32 maxRequests)
QHttpServer が受け付ける、IPごとの1秒あたりの着信リクエストの最大数をmaxRequests に設定する。この制限を超えた場合、QHttpServer はQHttpServerResponder::StatusCode::TooManyRequests で応答する。
rateLimitPerSecond() およびQHttpServerResponder::StatusCodeも参照のこと 。
[noexcept]
void QHttpServerConfiguration::swap(QHttpServerConfiguration &other)
このコンフィギュレーションをother と入れ替える。この操作は非常に速く、失敗することはない。
[noexcept]
QHttpServerConfiguration &QHttpServerConfiguration::operator=(QHttpServerConfiguration &&other)
QHttpServerConfigurationMove-assignother 。
QHttpServerConfiguration &QHttpServerConfiguration::operator=(const QHttpServerConfiguration &other)
コピーアサインother QHttpServerConfiguration 。
関連 非会員
[noexcept]
bool operator!=(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs)
lhs とrhs が同じコンフィギュレーション・パラメーター・セットを持っていない場合、true
を返す。
[noexcept]
bool operator==(const QHttpServerConfiguration &lhs, const QHttpServerConfiguration &rhs)
lhs とrhs が同じコンフィギュレーション・パラメーター・セットを持っている場合、true
を返す。
© 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.