(self, resp)
return f
Add a response to the state. Returns the matching flow.
Add a response to the state. Returns the matching flow.
Add a response to the state . Returns the matching flow .
def add_response(self, resp):
        """
            Add a response to the state. Returns the matching flow.
        """
        f = self._flow_map.get(resp.request)
        if not f:
            return False
        f.response = resp
        if f.match(self._limit) and not f in self.view:
            self.view.append(f)
        return f
def add_response ( self , resp ) : f = self . _flow_map . get ( resp . request ) if not f : return False f . response = resp if f . match ( self . _limit ) and not f in self . view : self . view . append ( f ) return f