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>
42 namespace websocketpp {
43 namespace extensions {
44 namespace permessage_deflate {
52 template <
typename config>
54 typedef std::pair<lib::error_code,std::string> err_str_pair;
65 err_str_pair negotiate(http::attribute_list
const &) {
66 return make_pair(make_error_code(error::disabled),std::string());
76 lib::error_code init(
bool) {
77 return lib::error_code();
82 bool is_implemented()
const {
88 bool is_enabled()
const {
99 std::string generate_offer()
const {
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);