MCPcopy Index your code
hub / github.com/python/cpython / HTTPServer

Class HTTPServer

Lib/http/server.py:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111DEFAULT_ERROR_CONTENT_TYPE = "text/html;charset=utf-8"
112
113class HTTPServer(socketserver.TCPServer):
114
115 allow_reuse_address = True # Seems to make sense in testing environment
116 allow_reuse_port = False
117
118 def server_bind(self):
119 """Override server_bind to store the server name."""
120 socketserver.TCPServer.server_bind(self)
121 host, port = self.server_address[:2]
122 self.server_name = socket.getfqdn(host)
123 self.server_port = port
124
125
126class ThreadingHTTPServer(socketserver.ThreadingMixIn, HTTPServer):

Callers 2

setUpMethod · 0.90
runMethod · 0.90

Calls

no outgoing calls

Tested by 2

setUpMethod · 0.72
runMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…