2011-07-05 Yuta Kitamura <yutak@chromium.org>
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / hixie76 / workers / resources / echo-challenge_wsh.py
1 from mod_pywebsocket import msgutil
2
3
4 def web_socket_do_extra_handshake(request):
5     pass
6
7
8 def web_socket_transfer_data(request):
9     msgutil.send_message(request, _hexify(request.ws_challenge))
10
11
12 def _hexify(bytes):
13     return ':'.join(['%02X' % ord(byte) for byte in bytes])