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/stdint.hpp> 33 #include <websocketpp/common/system_error.hpp> 35 #include <websocketpp/http/constants.hpp> 36 #include <websocketpp/extensions/extension.hpp> 43 namespace extensions {
44 namespace permessage_deflate {
52 template <
typename config>
54 typedef std::pair<lib::error_code,std::string> err_str_pair;
66 return make_pair(make_error_code(error::disabled),std::string());
76 lib::error_code
init(
bool) {
77 return lib::error_code();
109 lib::error_code
compress(std::string
const &, std::string &) {
110 return make_error_code(error::disabled);
120 lib::error_code
decompress(uint8_t
const *,
size_t, std::string &) {
121 return make_error_code(error::disabled);
129 #endif // WEBSOCKETPP_EXTENSION_PERMESSAGE_DEFLATE_DISABLED_HPP lib::error_code init(bool)
Initialize state.
std::string generate_offer() const
Generate extension offer.
Stub class for use when disabling permessage_deflate extension.
err_str_pair negotiate(http::attribute_list const &)
Negotiate extension.
bool is_implemented() const
lib::error_code compress(std::string const &, std::string &)
Compress bytes.
lib::error_code decompress(uint8_t const *, size_t, std::string &)
Decompress bytes.
Namespace for the WebSocket++ project.
std::map< std::string, std::string > attribute_list
The type of an HTTP attribute list.