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

Method test_insert

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

Source from the content-addressed store, hash-verified

844 assert list(headers) == ["Set-Cookie"]
845
846 def test_insert(self):
847 headers = Headers(Accept="text/plain")
848 headers.insert(0, b"Host", "example.com")
849 assert headers.fields == ((b"Host", b"example.com"), (b"Accept", b"text/plain"))
850
851 def test_items(self):
852 headers = Headers(

Callers

nothing calls this directly

Calls 2

insertMethod · 0.95
HeadersClass · 0.90

Tested by

no test coverage detected