Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
66
def
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
72
def
test_headers_insert_appends_if_new():
Callers
nothing calls this directly
Calls
1
values
Method · 0.95
Tested by
no test coverage detected