28 #ifndef WEBSOCKETPP_PROCESSOR_HYBI08_HPP 29 #define WEBSOCKETPP_PROCESSOR_HYBI08_HPP 31 #include <websocketpp/processors/hybi13.hpp> 43 template <
typename config>
46 typedef hybi08<config> type;
47 typedef typename config::request_type request_type;
49 typedef typename config::con_msg_manager_type::ptr msg_manager_ptr;
50 typedef typename config::rng_type rng_type;
52 explicit hybi08(
bool secure,
bool p_is_server, msg_manager_ptr manager, rng_type& rng)
53 : hybi13<config>(secure, p_is_server, manager, rng) {}
67 return error::make_error_code(error::no_protocol_support);
74 std::string
const &
get_origin(request_type
const & r)
const {
75 return r.get_header(
"Sec-WebSocket-Origin");
lib::error_code client_handshake_request(request_type &, uri_ptr, std::vector< std::string > const &) const
Fill in a set of request headers for a client connection request.
std::string const & get_origin(request_type const &r) const
Return the value of the header containing the CORS origin.
lib::weak_ptr< void > connection_hdl
A handle to uniquely identify a connection.
int get_version() const
Get the protocol version of this processor.
Processors encapsulate the protocol rules specific to each WebSocket version.
Processor for Hybi Draft version 08.