10 #ifndef __PION_SPDYDECOMPRESSOR_HEADER__
11 #define __PION_SPDYDECOMPRESSOR_HEADER__
14 #include <boost/noncopyable.hpp>
15 #include <boost/shared_ptr.hpp>
16 #include <pion/config.hpp>
17 #include <pion/spdy/types.hpp>
36 MAX_UNCOMPRESSED_DATA_BUF_SIZE = 16384
50 char* decompress(
const char *compressed_data_ptr,
51 boost::uint32_t stream_id,
53 boost::uint32_t header_block_length);
63 bool spdy_decompress_header(
const char *compressed_data_ptr,
65 boost::uint32_t length,
66 boost::uint32_t& uncomp_length);
72 z_streamp m_request_zstream;
75 z_streamp m_response_zstream;
78 boost::uint32_t m_dictionary_id;
81 boost::uint8_t m_uncompressed_header[MAX_UNCOMPRESSED_DATA_BUF_SIZE];
84 static const char SPDY_ZLIB_DICTIONARY[];
88 typedef boost::shared_ptr<decompressor> decompressor_ptr;
data_size_t
data size constants
This structure will be tied to each SPDY frame.