MCPcopy Create free account
hub / github.com/chronoxor/CppServer / onReceivedResponseHeader

Method onReceivedResponseHeader

source/server/ws/ws_client.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void WSClient::onReceivedResponseHeader(const HTTP::HTTPResponse& response)
99{
100 // Check for WebSocket handshaked status
101 if (_ws_handshaked)
102 return;
103
104 // Try to perform WebSocket upgrade
105 if (!PerformClientUpgrade(response, id()))
106 {
107 HTTPClient::onReceivedResponseHeader(response);
108 return;
109 }
110}
111
112void WSClient::onReceivedResponse(const HTTP::HTTPResponse& response)
113{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected