Home | History | Annotate | Download | only in test

Lines Matching defs:requestHandler

280 def http_server(evt, numrequests, requestHandler=None):
301 if not requestHandler:
302 requestHandler = SimpleXMLRPCServer.SimpleXMLRPCRequestHandler
303 serv = MyXMLRPCServer(("localhost", 0), requestHandler,
336 def http_multi_server(evt, numrequests, requestHandler=None):
357 if not requestHandler:
358 requestHandler = SimpleXMLRPCServer.SimpleXMLRPCRequestHandler
359 class MyRequestHandler(requestHandler):
419 requestHandler = None
429 serv_args = (self.evt, self.request_count, self.requestHandler)
615 class RequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
628 requestHandler = RequestHandler
631 self.RequestHandler.myRequests = []
645 self.assertEqual(len(self.RequestHandler.myRequests), 1)
649 self.assertGreaterEqual(len(self.RequestHandler.myRequests[-1]), 2)
670 self.assertEqual(len(self.RequestHandler.myRequests), 2)
671 self.assertGreaterEqual(len(self.RequestHandler.myRequests[-1]), 2)
672 self.assertGreaterEqual(len(self.RequestHandler.myRequests[-2]), 2)
680 self.assertEqual(len(self.RequestHandler.myRequests), 2)
687 class RequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
695 requestHandler = RequestHandler
718 a = self.RequestHandler.content_length
721 b = self.RequestHandler.content_length
737 old = self.requestHandler.encode_threshold
738 self.requestHandler.encode_threshold = None #no encoding
741 self.requestHandler.encode_threshold = 0 #always encode
744 self.requestHandler.encode_threshold = old