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>
44namespace permessage_deflate {
52template <
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);
Stub class for use when disabling permessage_deflate extension.
bool is_implemented() const
err_str_pair negotiate(http::attribute_list const &)
Negotiate extension.
lib::error_code compress(std::string const &, std::string &)
Compress bytes.
std::string generate_offer() const
Generate extension offer.
lib::error_code decompress(uint8_t const *, size_t, std::string &)
Decompress bytes.
lib::error_code init(bool)
Initialize state.
std::map< std::string, std::string > attribute_list
The type of an HTTP attribute list.
Namespace for the WebSocket++ project.