def get_mandatory_header(request, key):
    value = request.headers_in.get(key)
    if value is None:
        raise HandshakeException('Header %s is not defined' % key)
    return value
dataset/ETHPy150Open google/pywebsocket/mod_pywebsocket/handshake/_base.py/get_mandatory_header/original