From 96ce157700538c452cb2858082bb9be9201eef22 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Thu, 1 Aug 2013 08:58:56 +0000 Subject: Add constants for HTTP/2 connection header prefix This lands server change 50210381. R=rch@chromium.org Review URL: https://codereview.chromium.org/21116007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214994 0039d316-1c4b-4281-b951-d872f2087c98 --- net/spdy/spdy_protocol.h | 7 +++++++ 1 file changed, 7 insertions(+) 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, -- cgit v1.1