Roll src/third_party/WebKit 112833b:432d75f (svn 200749:200751)
[chromium-blink-merge.git] / net / websockets / websocket_handshake_constants.cc
blobbb031e2101be1f2c00b045ce515c110085afbf4b
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/websockets/websocket_handshake_constants.h"
7 namespace net {
8 namespace websockets {
10 const char kHttpProtocolVersion[] = "HTTP/1.1";
12 const size_t kRawChallengeLength = 16;
14 const char kSecWebSocketProtocol[] = "Sec-WebSocket-Protocol";
15 const char kSecWebSocketExtensions[] = "Sec-WebSocket-Extensions";
16 const char kSecWebSocketKey[] = "Sec-WebSocket-Key";
17 const char kSecWebSocketAccept[] = "Sec-WebSocket-Accept";
18 const char kSecWebSocketVersion[] = "Sec-WebSocket-Version";
20 const char kSupportedVersion[] = "13";
22 const char kUpgrade[] = "Upgrade";
23 const char kWebSocketGuid[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
25 const char kSecWebSocketProtocolSpdy3[] = ":sec-websocket-protocol";
26 const char kSecWebSocketExtensionsSpdy3[] = ":sec-websocket-extensions";
28 const char* const kSecWebSocketProtocolLowercase =
29 kSecWebSocketProtocolSpdy3 + 1;
30 const char* const kSecWebSocketExtensionsLowercase =
31 kSecWebSocketExtensionsSpdy3 + 1;
32 const char kSecWebSocketKeyLowercase[] = "sec-websocket-key";
33 const char kSecWebSocketVersionLowercase[] = "sec-websocket-version";
34 const char kUpgradeLowercase[] = "upgrade";
35 const char kWebSocketLowercase[] = "websocket";
37 } // namespace websockets
38 } // namespace net