txampext/jsondialect.py
def stringReceived(self, string):
        """Handle a JSON AMP dialect request.

        First, the JSON is parsed. Then, all JSON dialect specific
        values in the request are turned into the correct objects.
        Then, finds the correct responder function, calls it, and
        serializes the result (or error).

        """
        request = loads(string)

        identifier = request.pop("_ask")
        commandName = request.pop("_command")
        command, responder = self._getCommandAndResponder(commandName)

        self._parseRequestValues(request, command)
        d = self._runResponder(responder, request, command, identifier)
        d.addCallback(self._writeResponse)
def stringReceived(self, string):
        request = loads(string)

        identifier = request.pop("_ask")
        commandName = request.pop("_command")
        command, responder = self._getCommandAndResponder(commandName)

        self._parseRequestValues(request, command)
        d = self._runResponder(responder, request, command, identifier)
        d.addCallback(self._writeResponse)
def stringReceived ( self , string ) : request = loads ( string ) identifier = request . pop ( "_ask" ) commandName = request . pop ( "_command" ) command , responder = self . _getCommandAndResponder ( commandName ) self . _parseRequestValues ( request , command ) d = self . _runResponder ( responder , request , command , identifier ) d . addCallback ( self . _writeResponse )
Handle a JSON AMP dialect request.

        First, the JSON is parsed. Then, all JSON dialect specific
        values in the request are turned into the correct objects.
        Then, finds the correct responder function, calls it, and
        serializes the result (or error).
Handle a JSON AMP dialect request .