def __init__(self, transport, req_env, content_type): MethodContext.__init__(self, transport) self.transport = HttpTransportContext(transport, req_env, content_type) """Holds the WSGI-specific information"""
def __init__(self, transport, client_handle): MethodContext.__init__(self, transport, MethodContext.SERVER) self.transport = WebSocketTransportContext(self, transport, 'ws', client_handle)
def __init__(self, parent, transport, client_handle): MethodContext.__init__(self, parent, transport) self.transport = WebSocketTransportContext(transport, 'ws', client_handle, self)