def get_response()

in src/key_server_common.py [0:0]


    def get_response(self):
        """
        Get the key request response as an HTTP response.
        """
        self.fill_request()
        if self.error_message:
            return {"isBase64Encoded": False, "statusCode": 500, "headers": {"Content-Type": "text/plain"}, "body": self.error_message}
        return {
            "isBase64Encoded": False,
            "statusCode": 200,
            "headers": {
                "Content-Type": "application/xml",
                "Speke-User-Agent": "SPEKE Reference Server (https://github.com/awslabs/speke-reference-server)"
            },
            "body": element_tree.tostring(self.root).decode('utf-8')
        }