webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
webkitpy.thirdparty.mod_pywebsocket.handshake.hybi00.Handshaker Class Reference
Inheritance diagram for webkitpy.thirdparty.mod_pywebsocket.handshake.hybi00.Handshaker:

Public Member Functions

def __init__ (self, request, dispatcher)
 
def do_handshake (self)
 

Detailed Description

Opening handshake processor for the WebSocket protocol version HyBi 00.

Constructor & Destructor Documentation

◆ __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.

Member Function Documentation

◆ 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: