

def render_POST(self, request):
    '\n        This function is what Twisted calls with POST requests coming\n        in from the ajax client. The requests should be tagged with\n        different modes depending on what needs to be done, such as\n        initializing or sending/receving data through the request. It\n        uses a long-polling mechanism to avoid sending data unless\n        there is actual data available.\n\n        Args:\n            request (Request): Incoming request.\n\n        '
    dmode = request.args.get('mode', [None])[0]
    if (dmode == 'init'):
        return self.mode_init(request)
    elif (dmode == 'input'):
        return self.mode_input(request)
    elif (dmode == 'receive'):
        return self.mode_receive(request)
    elif (dmode == 'close'):
        return self.mode_close(request)
    else:
        return ''

dataset/ETHPy150Open evennia/evennia/evennia/server/portal/webclient.py WebClient.render_POST/original