3 This holds all the response and request objects for a
4 session. A server using this should call "clear" after
5 each request cycle in order to keep it from clogging
18 def add_response(self, response_obj):
19 self.responses.append(response_obj)
21 def add_request(self, request_obj):
22 self.requests.append(request_obj)
26 if len(self.requests) == 0:
29 return self.requests[-1]
33 if len(self.responses) == 0:
36 return self.responses[-1]