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