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

Method server_activate

Lib/http/server.py:153–157  ·  view source on GitHub ↗

Wrap the socket in SSLSocket.

(self)

Source from the content-addressed store, hash-verified

151 bind_and_activate)
152
153 def server_activate(self):
154 """Wrap the socket in SSLSocket."""
155 super().server_activate()
156 context = self._create_context()
157 self.socket = context.wrap_socket(self.socket, server_side=True)
158
159 def _create_context(self):
160 """Create a secure SSL context."""

Callers

nothing calls this directly

Calls 3

_create_contextMethod · 0.95
superClass · 0.85
wrap_socketMethod · 0.80

Tested by

no test coverage detected