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

Function h2_responses

test/mitmproxy/proxy/layers/http/test_http_fuzz.py:127–131  ·  view source on GitHub ↗
(draw)

Source from the content-addressed store, hash-verified

125
126@composite
127def h2_responses(draw):
128 response = draw(response_lines) + b"\r\n"
129 response += b"\r\n".join(draw(headers))
130 response += b"\r\n\r\n" + draw(bodies)
131 return response
132
133
134@given(chunks(mutations(h1_requests())))

Callers

nothing calls this directly

Calls 2

drawFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…