@defer.inlineCallbacks
    def action_get_response(self, data):
        from .http import Request, Response
        try:
            reqid = data['reqid']
            req = yield Request.load_request(reqid)
        except __HOLE__:
            raise PappyException("Request with given ID does not exist, cannot fetch associated response.")

        if req.response:
            rsp = yield Response.load_response(req.response.rspid)
            dat = json.loads(rsp.to_json())
        else:
            dat = {}
        defer.returnValue(dat)
dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/comm.py/CommServer.action_get_response