QWebSocketHandshakeOptions Class
Recoge opciones para el handshake WebSocket. Más...
| Cabecera: | #include <QWebSocketHandshakeOptions> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WebSockets)target_link_libraries(mytarget PRIVATE Qt6::WebSockets) |
| qmake: | QT += websockets |
| Desde: | Qt 6.4 |
Funciones Públicas
| QWebSocketHandshakeOptions() | |
| QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other) | |
| QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other) | |
| ~QWebSocketHandshakeOptions() | |
| void | setSubprotocols(const QStringList &protocols) |
| QStringList | subprotocols() const |
| QWebSocketHandshakeOptions & | operator=(QWebSocketHandshakeOptions &&other) |
| QWebSocketHandshakeOptions & | operator=(const QWebSocketHandshakeOptions &other) |
No miembros relacionados
| bool | operator!=(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs) |
| bool | operator==(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs) |
Descripción Detallada
QWebSocketHandshakeOptions recoge las opciones que se pasan al handshake WebSocket, como subprotocolos WebSocket y Extensiones WebSocket.
Por el momento, sólo se soportan los subprotocolos WebSocket.
Véase también QWebSocket::open().
Documentación de las funciones miembro
QWebSocketHandshakeOptions::QWebSocketHandshakeOptions()
Construye un objeto QWebSocketHandshakeOptions vacio.
QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other)
Construye un QWebSocketHandshakeOptions que es una copia de other.
[constexpr noexcept] QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other)
Construye un QWebSocketHandshakeOptions que se mueve desde other.
[noexcept] QWebSocketHandshakeOptions::~QWebSocketHandshakeOptions()
Destruye este objeto.
void QWebSocketHandshakeOptions::setSubprotocols(const QStringList &protocols)
Establece la lista de subprotocolos WebSocket protocols para enviar junto con el handshake websocket.
Los nombres de subprotocolo WebSocket sólo pueden constar de aquellos caracteres US-ASCII que estén en el grupo no reservado. Los nombres de protocolo no válidos no se incluirán en el handshake.
Véase también subprotocols().
QStringList QWebSocketHandshakeOptions::subprotocols() const
Devuelve la lista de subprotocolos WebSocket a enviar junto con el websocket handshake.
Véase también setSubprotocols().
[noexcept] QWebSocketHandshakeOptions &QWebSocketHandshakeOptions::operator=(QWebSocketHandshakeOptions &&other)
Mueve other a este objeto.
QWebSocketHandshakeOptions &QWebSocketHandshakeOptions::operator=(const QWebSocketHandshakeOptions &other)
Asigna other a este objeto.
No miembros relacionados
bool operator==(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)
bool operator!=(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)
Compara lhs para la igualdad con rhs.
© 2026 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.