|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
Utility class for WebSocket handshakes. More...
#include <WebSocket.hpp>
Static Public Member Functions | |
| static bool | is_valid_client_key (std::string_view key) |
| Checks that a Sec-WebSocket-Key is the base64 encoding of 16 bytes (RFC 6455 section 4.1): 22 base64 characters followed by "==". | |
| static std::string | generate_accept_key (const std::string &client_key) |
| Generates the Sec-WebSocket-Accept key for the WebSocket handshake. | |
Utility class for WebSocket handshakes.
|
inlinestatic |
Generates the Sec-WebSocket-Accept key for the WebSocket handshake.
| client_key | The base64-encoded Sec-WebSocket-Key from the client request. |
|
inlinestatic |
Checks that a Sec-WebSocket-Key is the base64 encoding of 16 bytes (RFC 6455 section 4.1): 22 base64 characters followed by "==".