

def initialize_read(self, filename, client_host, client_port):
    "For a read request, finds the appropriate action and invokes it.\n\n        Args:\n            filename: The filename included in the client's request.\n            client_host: The host of the client connecting.\n            client_port: The port of the client connecting.\n\n        Returns:\n            A ReadBuffer containing the file contents to return. If there is no\n            corresponding action, returns None.\n        "
    action = self.find_action(self.read_rules, filename)
    if action:
        return ReadBuffer(action(client_host, client_port, filename))
    else:
        return None

dataset/ETHPy150Open dropbox/emmer/emmer/response_router.py ResponseRouter.initialize_read/original