QHttpServerConfiguration Class
QHttpServerConfiguration 클래스는 서버 매개 변수를 제어합니다. 더 보기...
Header: | #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()
기본값은 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당 초당 최대 수신 요청 수로 maxRequests 을 설정합니다. 제한을 초과하면 QHttpServer 은 QHttpServerResponder::StatusCode::TooManyRequests 으로 응답합니다.
rateLimitPerSecond() 및 QHttpServerResponder::StatusCode 을참조하세요 .
[noexcept]
void QHttpServerConfiguration::swap(QHttpServerConfiguration &other)
이 구성을 other 로 바꿉니다. 이 작업은 매우 빠르며 실패하지 않습니다.
[noexcept]
QHttpServerConfiguration &QHttpServerConfiguration::operator=(QHttpServerConfiguration &&other)
이동 - other 을 이 QHttpServerConfiguration 에 할당합니다.
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.