summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/spdy/spdy_protocol.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
index 97d0eca..8232c82 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -255,6 +255,13 @@ const char kV3Dictionary[] = {
};
const int kV3DictionarySize = arraysize(kV3Dictionary);
+// The HTTP/2 connection header prefix, which must be the first bytes
+// sent by the client upon starting an HTTP/2 connection, and which
+// must be followed by a SETTINGS frame.
+const char kHttp2ConnectionHeaderPrefix[] = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
+const int kHttp2ConnectionHeaderPrefixSize =
+ arraysize(kHttp2ConnectionHeaderPrefix);
+
// Types of SPDY frames.
enum SpdyFrameType {
DATA = 0,