websocket_handshake_constants.cc 874 B

1234567891011121314151617181920212223242526
  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. #include "net/websockets/websocket_handshake_constants.h"
  5. namespace net::websockets {
  6. const char kHttpProtocolVersion[] = "HTTP/1.1";
  7. const size_t kRawChallengeLength = 16;
  8. const char kSecWebSocketProtocol[] = "Sec-WebSocket-Protocol";
  9. const char kSecWebSocketExtensions[] = "Sec-WebSocket-Extensions";
  10. const char kSecWebSocketKey[] = "Sec-WebSocket-Key";
  11. const char kSecWebSocketAccept[] = "Sec-WebSocket-Accept";
  12. const char kSecWebSocketVersion[] = "Sec-WebSocket-Version";
  13. const char kSupportedVersion[] = "13";
  14. const char kUpgrade[] = "Upgrade";
  15. const char kWebSocketGuid[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
  16. const char kWebSocketLowercase[] = "websocket";
  17. } // namespace net::websockets