webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Functions
webkitpy.thirdparty.mod_pywebsocket.handshake._base Namespace Reference

Classes

class  AbortedByUserException
 
class  HandshakeException
 
class  VersionException
 

Functions

def get_default_port (is_secure)
 
def validate_subprotocol (subprotocol)
 
def parse_host_header (request)
 
def format_header (name, value)
 
def get_mandatory_header (request, key)
 
def validate_mandatory_header (request, key, expected_value, fail_status=None)
 
def check_request_line (request)
 
def parse_token_list (data)
 

Function Documentation

◆ check_request_line()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.check_request_line (   request)

◆ format_header()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.format_header (   name,
  value 
)

◆ get_default_port()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.get_default_port (   is_secure)

◆ get_mandatory_header()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.get_mandatory_header (   request,
  key 
)

◆ parse_host_header()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.parse_host_header (   request)

◆ parse_token_list()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.parse_token_list (   data)
Parses a header value which follows 1#token and returns parsed elements
as a list of strings.

Leading LWSes must be trimmed.

◆ validate_mandatory_header()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.validate_mandatory_header (   request,
  key,
  expected_value,
  fail_status = None 
)

◆ validate_subprotocol()

def webkitpy.thirdparty.mod_pywebsocket.handshake._base.validate_subprotocol (   subprotocol)
Validate a value in the Sec-WebSocket-Protocol field.

See the Section 4.1., 4.2.2., and 4.3. of RFC 6455.