summaryrefslogtreecommitdiff
path: root/chromium/net/websockets/websocket_handshake_constants.cc
blob: 4bd4bd119d9919945d9f873a1f2b582256e950fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/websockets/websocket_handshake_constants.h"

namespace net {
namespace websockets {

const char kHttpProtocolVersion[] = "HTTP/1.1";

const size_t kRawChallengeLength = 16;

const char kSecWebSocketProtocol[] = "Sec-WebSocket-Protocol";
const char kSecWebSocketExtensions[] = "Sec-WebSocket-Extensions";
const char kSecWebSocketKey[] = "Sec-WebSocket-Key";
const char kSecWebSocketAccept[] = "Sec-WebSocket-Accept";
const char kSecWebSocketVersion[] = "Sec-WebSocket-Version";

const char kSupportedVersion[] = "13";

const char kUpgrade[] = "Upgrade";
const char kWebSocketGuid[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";

const char kWebSocketLowercase[] = "websocket";

}  // namespace websockets
}  // namespace net