def render_POST(self, request):
        dmode = request.args.get('mode', [None])[0]
        if dmode == 'init':
            # startup. Setup the server.
            return self.mode_init(request)
        elif dmode == 'input':
            # input from the client to the server
            return self.mode_input(request)
        elif dmode == 'receive':
            # the client is waiting to receive data.
            return self.mode_receive(request)
        elif dmode == 'close':
            # the client is closing
            return self.mode_close(request)
        else:
            # this should not happen if client sends valid data.
            return ''


#
# A session type handling communication over the
# web client interface.
#
This function is what Twisted calls with POST requests coming
dataset/ETHPy150Open evennia/evennia/evennia/server/portal/webclient.py/WebClient.render_POST