HTTP module
ws::WebSocket
Standalone WebSocket class.
WebSocket
#include <icy/http/websocket.h>Inherits:
WebSocketAdapter
Standalone WebSocket class.
Public Methods
| Return | Name | Description |
|---|---|---|
WebSocket | Creates the WebSocket with the given Socket. The Socket should be a TCPSocket or a SSLSocket, depending on the protocol used (ws or wss). | |
http::Request & | request | Returns the HTTP request used during the WebSocket handshake. |
http::Response & | response | Returns the HTTP response received during the WebSocket handshake. |
WebSocket
WebSocket(const net::Socket::Ptr & socket)Creates the WebSocket with the given Socket. The Socket should be a TCPSocket or a SSLSocket, depending on the protocol used (ws or wss).
request
http::Request & request()Returns the HTTP request used during the WebSocket handshake.
response
http::Response & response()Returns the HTTP response received during the WebSocket handshake.
Protected Attributes
_request
http::Request _request_response
http::Response _responsePublic Types
| Name | Description |
|---|---|
Vec |
Vec
std::vector< WebSocket > Vec()