Opening handshake processor for the WebSocket protocol version HyBi 00.
◆ __init__()
def webkitpy.thirdparty.mod_pywebsocket.handshake.hybi00.Handshaker.__init__ |
( |
|
self, |
|
|
|
request, |
|
|
|
dispatcher |
|
) |
| |
Construct an instance.
Args:
request: mod_python request.
dispatcher: Dispatcher (dispatch.Dispatcher).
Handshaker will add attributes such as ws_resource in performing
handshake.
◆ do_handshake()
def webkitpy.thirdparty.mod_pywebsocket.handshake.hybi00.Handshaker.do_handshake |
( |
|
self | ) |
|
Perform WebSocket Handshake.
On _request, we set
ws_resource, ws_protocol, ws_location, ws_origin, ws_challenge,
ws_challenge_md5: WebSocket handshake information.
ws_stream: Frame generation/parsing class.
ws_version: Protocol version.
Raises:
HandshakeException: when any error happened in parsing the opening
handshake request.
The documentation for this class was generated from the following file:
- Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/handshake/hybi00.py