1 # Copyright 2014 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.
5 # Sends a single message on opening containing the headers received from the
6 # browser. The header keys have been converted to lower-case, while the values
7 # retain the original case.
11 from mod_pywebsocket
import msgutil
14 def web_socket_do_extra_handshake(request
):
18 def web_socket_transfer_data(request
):
19 msgutil
.send_message(request
, json
.dumps(dict(request
.headers_in
.items())))