(self, req)
return f
Add a request to the state. Returns the matching flow.
Add a request to the state. Returns the matching flow.
Add a request to the state . Returns the matching flow .
def add_request(self, req):
        """
            Add a request to the state. Returns the matching flow.
        """
        f = Flow(req)
        self._flow_list.append(f)
        self._flow_map[req] = f
        assert len(self._flow_list) == len(self._flow_map)
        if f.match(self._limit):
            self.view.append(f)
        return f
def add_request ( self , req ) : f = Flow ( req ) self . _flow_list . append ( f ) self . _flow_map [ req ] = f assert len ( self . _flow_list ) == len ( self . _flow_map ) if f . match ( self . _limit ) : self . view . append ( f ) return f