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;
65 return make_pair(make_error_code(error::disabled),std::string());
86 lib::error_code
compress(std::string
const &, std::string &) {
87 return make_error_code(error::disabled);
97 lib::error_code
decompress(uint8_t
const *,
size_t, std::string &) {
98 return make_error_code(error::disabled);
106 #endif // WEBSOCKETPP_EXTENSION_PERMESSAGE_DEFLATE_DISABLED_HPP
Stub class for use when disabling permessage_deflate extension.
err_str_pair negotiate(http::attribute_list const &)
Negotiate extension.
lib::error_code compress(std::string const &, std::string &)
Compress bytes.
lib::error_code decompress(uint8_t const *, size_t, std::string &)
Decompress bytes.
bool is_implemented() const
Namespace for the WebSocket++ project.
std::map< std::string, std::string > attribute_list
The type of an HTTP attribute list.