MCPcopy
hub / github.com/urllib3/urllib3 / set_alpn_protocols

Method set_alpn_protocols

src/urllib3/contrib/pyopenssl.py:495–497  ·  view source on GitHub ↗
(self, protocols: list[bytes | str])

Source from the content-addressed store, hash-verified

493 raise ssl.SSLError(f"Unable to load certificate chain: {e!r}") from e
494
495 def set_alpn_protocols(self, protocols: list[bytes | str]) -> None:
496 protocols = [util.util.to_bytes(p, "ascii") for p in protocols]
497 return self._ctx.set_alpn_protos(protocols) # type: ignore[no-any-return]
498
499 def wrap_socket(
500 self,

Callers 2

ssl_wrap_socketFunction · 0.80
ssl_options_to_contextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected