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

Method test_http_version

test/mitmproxy/test_http.py:976–980  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

974 _test_passthrough_attr(tresp(), "timestamp_end")
975
976 def test_http_version(self):
977 _test_decoded_attr(tresp(), "http_version")
978 assert tresp(http_version=b"HTTP/1.0").is_http10
979 assert tresp(http_version=b"HTTP/1.1").is_http11
980 assert tresp(http_version=b"HTTP/2.0").is_http2
981
982
983class TestMessageContentEncoding:

Callers

nothing calls this directly

Calls 2

trespFunction · 0.90
_test_decoded_attrFunction · 0.85

Tested by

no test coverage detected