Public Member Functions | Static Public Attributes | Private Attributes | List of all members
async_web_server_cpp::WebsocketHttpRequestHandler Class Reference

#include <websocket_request_handler.hpp>

Public Member Functions

bool operator() (const HttpRequest &request, boost::shared_ptr< HttpConnection > connection, const char *begin, const char *end)
 
 WebsocketHttpRequestHandler (WebsocketRequestHandler handler)
 

Static Public Attributes

static const std::string KEY_MAGIC_STRING
 

Private Attributes

WebsocketRequestHandler handler_
 

Detailed Description

A HTTP request handler that upgrades a HttpConnection to a WebsocketConnection.

Definition at line 23 of file websocket_request_handler.hpp.

Constructor & Destructor Documentation

◆ WebsocketHttpRequestHandler()

async_web_server_cpp::WebsocketHttpRequestHandler::WebsocketHttpRequestHandler ( WebsocketRequestHandler  handler)

Definition at line 20 of file websocket_request_handler.cpp.

Member Function Documentation

◆ operator()()

bool async_web_server_cpp::WebsocketHttpRequestHandler::operator() ( const HttpRequest request,
boost::shared_ptr< HttpConnection connection,
const char *  begin,
const char *  end 
)

Definition at line 26 of file websocket_request_handler.cpp.

Member Data Documentation

◆ handler_

WebsocketRequestHandler async_web_server_cpp::WebsocketHttpRequestHandler::handler_
private

Definition at line 34 of file websocket_request_handler.hpp.

◆ KEY_MAGIC_STRING

const std::string async_web_server_cpp::WebsocketHttpRequestHandler::KEY_MAGIC_STRING
static
Initial value:
=
"258EAFA5-E914-47DA-95CA-C5AB0DC85B11"

Definition at line 31 of file websocket_request_handler.hpp.


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


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Tue Mar 1 2022 23:49:07