MCPcopy
hub / github.com/urllib3/urllib3 / __init__

Method __init__

dummyserver/asgi_proxy.py:32–36  ·  view source on GitHub ↗
(self, upstream_ca_certs: str | None = None)

Source from the content-addressed store, hash-verified

30
31class ProxyApp:
32 def __init__(self, upstream_ca_certs: str | None = None):
33 self.ssl_context = None
34 if upstream_ca_certs:
35 self.ssl_context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
36 self.ssl_context.load_verify_locations(cafile=upstream_ca_certs)
37
38 async def __call__(
39 self, scope: Scope, receive: ASGIReceiveCallable, send: ASGISendCallable

Callers

nothing calls this directly

Calls 1

load_verify_locationsMethod · 0.80

Tested by

no test coverage detected