blob: 4bd4bd119d9919945d9f873a1f2b582256e950fe [file] [log] [blame]
[email protected]86cdad82013-09-03 09:51:241// 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
7namespace net {
8namespace websockets {
9
thestig9d3bb0c2015-01-24 00:49:5110const char kHttpProtocolVersion[] = "HTTP/1.1";
[email protected]86cdad82013-09-03 09:51:2411
12const size_t kRawChallengeLength = 16;
13
thestig9d3bb0c2015-01-24 00:49:5114const char kSecWebSocketProtocol[] = "Sec-WebSocket-Protocol";
15const char kSecWebSocketExtensions[] = "Sec-WebSocket-Extensions";
16const char kSecWebSocketKey[] = "Sec-WebSocket-Key";
17const char kSecWebSocketAccept[] = "Sec-WebSocket-Accept";
18const char kSecWebSocketVersion[] = "Sec-WebSocket-Version";
[email protected]86cdad82013-09-03 09:51:2419
thestig9d3bb0c2015-01-24 00:49:5120const char kSupportedVersion[] = "13";
[email protected]0788a2f22013-11-25 06:38:0221
thestig9d3bb0c2015-01-24 00:49:5122const char kUpgrade[] = "Upgrade";
23const char kWebSocketGuid[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
[email protected]86cdad82013-09-03 09:51:2424
thestig9d3bb0c2015-01-24 00:49:5125const char kWebSocketLowercase[] = "websocket";
[email protected]86cdad82013-09-03 09:51:2426
27} // namespace websockets
28} // namespace net