MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / _test_passthrough_attr

Function _test_passthrough_attr

test/mitmproxy/test_http.py:870–873  ·  view source on GitHub ↗
(message: Message, attr: str, value: Any = b"foo")

Source from the content-addressed store, hash-verified

868
869
870def _test_passthrough_attr(message: Message, attr: str, value: Any = b"foo") -> None:
871 assert getattr(message, attr) == getattr(message.data, attr)
872 setattr(message, attr, value)
873 assert getattr(message.data, attr) == value
874
875
876def _test_decoded_attr(message, attr):

Callers 6

test_portMethod · 0.85
test_status_codeMethod · 0.85
test_headersMethod · 0.85
test_trailersMethod · 0.85
test_timestamp_startMethod · 0.85
test_timestamp_endMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…