10 #ifndef __PION_SPDYTYPES_HEADER__ 11 #define __PION_SPDYTYPES_HEADER__ 14 #include <pion/config.hpp> 21 #define MIN_SPDY_VERSION 3 25 #define SPDY_SYN_STREAM 1 26 #define SPDY_SYN_REPLY 2 27 #define SPDY_RST_STREAM 3 28 #define SPDY_SETTINGS 4 31 #define SPDY_HEADERS 8 32 #define SPDY_WINDOW_UPDATE 9 33 #define SPDY_CREDENTIAL 10 34 #define SPDY_INVALID 11 36 #define SPDY_FLAG_FIN 0x01 37 #define SPDY_FLAG_UNIDIRECTIONAL 0x02 39 #define SIZE_OF_BYTE 8 42 #define HTTP_REQUEST 1 43 #define HTTP_RESPONSE 2 45 #define SPDY_CONTROL 4 50 boost::uint16_t version;
53 boost::uint32_t length;
61 boost::uint32_t stream_id;
62 boost::uint8_t *header_block;
63 boost::uint8_t header_block_len;
64 boost::uint16_t frame_type;
70 std::map<std::string, std::string> http_headers;
71 boost::uint32_t http_type;
72 boost::uint32_t stream_id;
73 boost::uint32_t data_offset;
74 boost::uint32_t data_size;
78 : http_type(NON_SPDY),
88 spdy_control_frame = 2,
89 spdy_invalid_frame = 3
This structure contains the HTTP Protocol information.
This structure will be tied to each SPDY frame.