28 #ifndef WEBSOCKETPP_PROCESSOR_HYBI08_HPP
29 #define WEBSOCKETPP_PROCESSOR_HYBI08_HPP
31 #include <websocketpp/processors/hybi13.hpp>
40 template <
typename config>
44 typedef typename config::request_type request_type;
46 typedef typename config::con_msg_manager_type::ptr msg_manager_ptr;
47 typedef typename config::rng_type rng_type;
49 explicit hybi08(
bool secure,
bool p_is_server, msg_manager_ptr manager, rng_type& rng)
62 std::vector<std::string>
const &)
const
71 const std::string&
get_origin(request_type
const & r)
const {
72 return r.get_header(
"Sec-WebSocket-Origin");
80 #endif //WEBSOCKETPP_PROCESSOR_HYBI08_HPP
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.
const std::string & get_origin(request_type const &r) const
Return the value of the header containing the CORS origin.
No support for this feature in this protocol version.
lib::error_code make_error_code(error::processor_errors e)
Create an error code with the given value and the processor category.
Namespace for the WebSocket++ project.
lib::shared_ptr< uri > uri_ptr
Pointer to a URI.
int get_version() const
Get the protocol version of this processor.
Processor for Hybi Draft version 08.
Processor for Hybi version 13 (RFC6455)