QHttpServerWebSocketUpgradeResponse Class | Qt HTTP Server (original) (raw)
Response to return when verifying WebSocket upgrades on HTTP server. More...
Header: | #include |
---|---|
CMake: | find_package(Qt6 REQUIRED COMPONENTS HttpServer) target_link_libraries(mytarget PRIVATE Qt6::HttpServer) |
qmake: | QT += httpserver |
Since: | Qt 6.8 |
Public Types
Public Functions
Static Public Members
QHttpServerWebSocketUpgradeResponse | accept() |
---|---|
QHttpServerWebSocketUpgradeResponse | deny() |
QHttpServerWebSocketUpgradeResponse | deny(int status, QByteArray message) |
QHttpServerWebSocketUpgradeResponse | passToNext() |
See also QAbstractHttpServer::addWebSocketUpgradeVerifier() and QAbstractHttpServer::missingHandler().
Member Type Documentation
enum class QHttpServerWebSocketUpgradeResponse::ResponseType
Response types
Constant | Value | Description |
---|---|---|
QHttpServerWebSocketUpgradeResponse::ResponseType::Accept | 0 | Accept the WebSocket upgrade request. |
QHttpServerWebSocketUpgradeResponse::ResponseType::Deny | 1 | Deny the WebSocket upgrade request. |
QHttpServerWebSocketUpgradeResponse::ResponseType::PassToNext | 2 | Pass the Websocket upgrade decision to the next verifier if any. |
See also QAbstractHttpServer::addWebSocketUpgradeVerifier() and type().
© 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.