mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
22 lines
646 B
C
22 lines
646 B
C
|
// Copyright 2014 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.
|
||
|
|
||
|
#ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CHALLENGE_H_
|
||
|
#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CHALLENGE_H_
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "net/base/net_export.h"
|
||
|
|
||
|
namespace net {
|
||
|
|
||
|
// Given a WebSocket handshake challenge, compute the value that the server
|
||
|
// should return in the Sec-WebSocket-Accept header.
|
||
|
NET_EXPORT_PRIVATE std::string ComputeSecWebSocketAccept(
|
||
|
const std::string& key);
|
||
|
|
||
|
} // namespace net
|
||
|
|
||
|
#endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CHALLENGE_H_
|