MCPcopy Index your code
hub / github.com/RustPython/RustPython / HTTPServer

Class HTTPServer

Lib/http/server.py:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139_MIN_READ_BUF_SIZE = 1 << 20
140
141class HTTPServer(socketserver.TCPServer):
142
143 allow_reuse_address = True # Seems to make sense in testing environment
144 allow_reuse_port = False
145
146 def server_bind(self):
147 """Override server_bind to store the server name."""
148 socketserver.TCPServer.server_bind(self)
149 host, port = self.server_address[:2]
150 self.server_name = socket.getfqdn(host)
151 self.server_port = port
152
153
154class 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