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

Function test_validate_headers_ok

test/mitmproxy/net/http/test_validate.py:53–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_validate_headers_ok():
54 validate_headers(
55 Response.make(headers=Headers(content_length="42")),
56 )
57 validate_headers(
58 Request.make(
59 "POST", "https://example.com", headers=Headers(transfer_encoding="chunked")
60 ),
61 )
62
63
64@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

validate_headersFunction · 0.90
HeadersClass · 0.90
makeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…