MCPcopy
hub / github.com/urllib3/urllib3 / close

Method close

src/urllib3/connection.py:375–388  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

373 return self._tunnel_host is not None
374
375 def close(self) -> None:
376 try:
377 super().close()
378 finally:
379 # Reset all stateful properties so connection
380 # can be re-used without leaking prior configs.
381 self.sock = None
382 self.is_verified = False
383 self.proxy_is_verified = None
384 self._has_connected_to_proxy = False
385 self._response_options = None
386 self._tunnel_host = None
387 self._tunnel_port = None
388 self._tunnel_scheme = None
389
390 def putrequest(
391 self,

Callers 3

pyodide_testFunction · 0.95
_tunnelMethod · 0.95

Calls

no outgoing calls

Tested by 1

pyodide_testFunction · 0.76