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

Method server_activate

Lib/http/server.py:181–185  ·  view source on GitHub ↗

Wrap the socket in SSLSocket.

(self)

Source from the content-addressed store, hash-verified

179 bind_and_activate)
180
181 def server_activate(self):
182 """Wrap the socket in SSLSocket."""
183 super().server_activate()
184 context = self._create_context()
185 self.socket = context.wrap_socket(self.socket, server_side=True)
186
187 def _create_context(self):
188 """Create a secure SSL context."""

Callers 2

http_serverFunction · 0.45
http_multi_serverFunction · 0.45

Calls 3

_create_contextMethod · 0.95
superClass · 0.85
wrap_socketMethod · 0.80

Tested by 2

http_serverFunction · 0.36
http_multi_serverFunction · 0.36