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

Method selected_alpn_protocol

Lib/ssl.py:923–927  ·  view source on GitHub ↗

Return the currently selected ALPN protocol as a string, or ``None`` if a next protocol was not negotiated or if ALPN is not supported by one of the peers.

(self)

Source from the content-addressed store, hash-verified

921 )
922
923 def selected_alpn_protocol(self):
924 """Return the currently selected ALPN protocol as a string, or ``None``
925 if a next protocol was not negotiated or if ALPN is not supported by one
926 of the peers."""
927 return self._sslobj.selected_alpn_protocol()
928
929 def cipher(self):
930 """Return the currently selected cipher as a 3-tuple ``(name,

Callers 3

wrap_connMethod · 0.45
server_params_testFunction · 0.45

Calls

no outgoing calls

Tested by 2

wrap_connMethod · 0.36
server_params_testFunction · 0.36