def send_response(self, request, result=None, error=None):
        """Respond to a JSON-RPC method call.

        This is a response to the message in *request*. If *error* is not
        provided, then this is a succesful response, and the value in *result*,
        which may be ``None``, is passed back to the client. if *error* is
        provided and not ``None`` then an error is sent back. In this case
        *error* must be a dictionary as specified by the JSON-RPC spec.
        """
        message = self._version.create_response(request, result, error)
        self.send_message(message)
def send_response ( self , request , result = None , error = None ) : message = self . _version . create_response ( request , result , error ) self . send_message ( message )
Respond to a JSON-RPC method call.

        This is a response to the message in *request*. If *error* is not
        provided, then this is a succesful response, and the value in *result*,
        which may be ``None``, is passed back to the client. if *error* is
        provided and not ``None`` then an error is sent back. In this case
        *error* must be a dictionary as specified by the JSON-RPC spec.