MCPcopy
hub / github.com/pallets/werkzeug / UnixSocketHTTPConnection

Class UnixSocketHTTPConnection

tests/conftest.py:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25class UnixSocketHTTPConnection(http.client.HTTPConnection):
26 def connect(self) -> None:
27 self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
28 # Raises FileNotFoundError if the server hasn't started yet.
29 self.sock.connect(self.host)
30
31
32# Used to annotate the ``DevServerClient.request`` return value.

Callers 1

connectMethod · 0.85

Calls

no outgoing calls

Tested by 1

connectMethod · 0.68