Lines Matching defs:server
7 from http.server import BaseHTTPRequestHandler, HTTPServer, \
9 from http import server, HTTPStatus
54 self.server = HTTPServer(('localhost', 0), self.request_handler)
55 self.test_object.HOST, self.test_object.PORT = self.server.socket.getsockname()
59 self.server.serve_forever(0.05)
61 self.server.server_close()
64 self.server.shutdown()
404 # Ensure the server has not set up a persistent connection, and has
456 This checks that a path resolving to a directory on our server cannot
457 resolve into a redirect to another server.
552 If-Modified-Since set to date of last modification, the server returns
845 server._url_collapse_path, path)
847 actual = server._url_collapse_path(path)
1298 with support.swap_attr(server.os, 'path', ntpath):
1344 for name in dir(server):
1347 module_object = getattr(server, name)
1348 if getattr(module_object, '__module__', None) == 'http.server':
1350 self.assertCountEqual(server.__all__, expected)
1371 server.test(ServerClass=mock_server, bind=None)
1380 server.test(ServerClass=mock_server, bind="localhost")
1402 server.test(ServerClass=mock_server, bind=bind)
1409 server.test(ServerClass=mock_server, bind=bind)