PyDocs

Nav

Networking and Interprocess Communication

SSLContext.set_alpn_protocols

ssl

method of SSLContext · Added in 3.5 (source) not WASI
  • SSLContext.set_alpn_protocols(alpn_protocols)
Specify which protocols the socket should advertise during the SSL/TLS handshake. It should be a list of ASCII strings, like ['http/1.1', 'spdy/2'], ordered by preference. The selection of a protocol will happen during the handshake, and will play out according to RFC 7301. After a successful handshake, the SSLSocket.selected_alpn_protocol() method will return the agreed-upon protocol.
0 Examples
No examples for ssl/SSLContext.set_alpn_protocols.
See Also
No see-alsos for ssl/SSLContext.set_alpn_protocols
0 Notes
No notes for SSLContext.set_alpn_protocols