MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / open_h2_server_conn

Function open_h2_server_conn

test/mitmproxy/proxy/layers/http/test_http2.py:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48@pytest.fixture
49def open_h2_server_conn():
50 # this is a bit fake here (port 80, with alpn, but no tls - c'mon),
51 # but we don't want to pollute our tests with TLS handshakes.
52 s = Server(address=("example.com", 80))
53 s.state = ConnectionState.OPEN
54 s.alpn = b"h2"
55 return s
56
57
58def decode_frames(data: bytes) -> list[hyperframe.frame.Frame]:

Callers

nothing calls this directly

Calls 1

ServerClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…