HTTP module

ws::WebSocket

Standalone [WebSocket]({#ref classicy_1_1http_1_1ws_1_1WebSocket #}) class.

WebSocket

#include <icy/http/websocket.h>

Inherits: WebSocketAdapter

Standalone WebSocket class.

Public Methods

ReturnNameDescription
WebSocketCreates 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 &requestReturns the HTTP request used during the WebSocket handshake.
http::Response &responseReturns 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

ReturnNameDescription
http::Request_request
http::Response_response

_request

http::Request _request

_response

http::Response _response

Public Types

NameDescription
Vec

Vec

std::vector< WebSocket > Vec()