MCPcopy
hub / github.com/encode/httpx / test_headers_insert_retains_ordering

Function test_headers_insert_retains_ordering

tests/models/test_headers.py:66–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def test_headers_insert_retains_ordering():
67 headers = httpx.Headers({"a": "a", "b": "b", "c": "c"})
68 headers["b"] = "123"
69 assert list(headers.values()) == ["a", "123", "c"]
70
71
72def test_headers_insert_appends_if_new():

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.95

Tested by

no test coverage detected