Lines Matching defs:http
10 import http.client
11 import http, http.server
324 class RequestHandler(http.server.BaseHTTPRequestHandler):
336 self.send_response(http.HTTPStatus.OK)
352 server = http.server.HTTPServer((socket_helper.HOST, 0), RequestHandler)
357 url = "http://{}:{}/".format(*server.server_address)
641 URL = "http://%s:%d"%(ADDR, PORT)
711 URL = "http://%s:%d"%(ADDR, PORT)
851 # send POST with http.client, it should return 404 header and
853 with contextlib.closing(http.client.HTTPConnection(ADDR, PORT)) as conn:
965 server = xmlrpclib.ServerProxy("http://%s:%d/RPC2" % (ADDR, PORT))
970 server = xmlrpclib.ServerProxy("http://%s:%d/RPC2" % (ADDR, PORT))
1305 self.url = 'http://fake.localhost'
1319 class FailingMessageClass(http.client.HTTPMessage):
1346 default_class = http.client.HTTPMessage
1470 # start with 44th char so as not to get http header, we just
1477 # Test for bug: http://bugs.python.org/issue5040