Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
http::websocket::Handshake Class Reference

Utility class for WebSocket handshakes. More...

#include <WebSocket.hpp>

Static Public Member Functions

static std::string generate_accept_key (const std::string &client_key)
 Generates the Sec-WebSocket-Accept key for the WebSocket handshake.
 

Detailed Description

Utility class for WebSocket handshakes.

Member Function Documentation

◆ generate_accept_key()

static std::string http::websocket::Handshake::generate_accept_key ( const std::string &  client_key)
inlinestatic

Generates the Sec-WebSocket-Accept key for the WebSocket handshake.

Parameters
client_keyThe base64-encoded Sec-WebSocket-Key from the client request.
Returns
The base64-encoded response key to send back to the client.

The documentation for this class was generated from the following file: