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

Method server_bind

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

Override server_bind to store the server name.

(self)

Source from the content-addressed store, hash-verified

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 1

server_bindMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected