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.
4 
5 #include "net/websockets/websocket_handshake_constants.h"
6 
7 namespace net {
8 namespace websockets {
9 
10 const char kHttpProtocolVersion[] = "HTTP/1.1";
11 
12 const size_t kRawChallengeLength = 16;
13 
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";
19 
20 const char kSupportedVersion[] = "13";
21 
22 const char kUpgrade[] = "Upgrade";
23 const char kWebSocketGuid[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
24 
25 const char kWebSocketLowercase[] = "websocket";
26 
27 }  // namespace websockets
28 }  // namespace net
29