28 #ifndef WEBSOCKETPP_EXTENSION_PERMESSAGE_DEFLATE_DISABLED_HPP
29 #define WEBSOCKETPP_EXTENSION_PERMESSAGE_DEFLATE_DISABLED_HPP
31 #include <websocketpp/common/cpp11.hpp>
32 #include <websocketpp/common/system_error.hpp>
34 #include <websocketpp/http/constants.hpp>
35 #include <websocketpp/extensions/extension.hpp>
42 namespace extensions {
43 namespace permessage_deflate {
51 template <
typename config>
53 typedef std::pair<lib::error_code,std::string> err_str_pair;
57 return make_pair(make_error_code(error::disabled),std::string());
72 lib::error_code compress(std::string
const & in, std::string & out) {
73 return make_error_code(error::disabled);
76 lib::error_code decompress(uint8_t
const * buf,
size_t len,
79 return make_error_code(error::disabled);
82 lib::error_code decompress(std::string
const & in, std::string & out) {
83 return make_error_code(error::disabled);
91 #endif // WEBSOCKETPP_EXTENSION_PERMESSAGE_DEFLATE_DISABLED_HPP
Stub class for use when disabling permessage_deflate extension.
bool is_implemented() const
Namespace for the WebSocket++ project.
std::map< std::string, std::string > attribute_list
The type of an HTTP attribute list.