Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ header_items
Method
header_items
Lib/urllib/request.py:390–392 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
388
self.unredirected_hdrs.pop(header_name, None)
389
390
def
header_items(self):
391
hdrs = {**self.unredirected_hdrs, **self.headers}
392
return
list(hdrs.items())
393
394
class
OpenerDirector:
395
def
__init__(self):
Callers
2
test_custom_headers
Method · 0.95
test_request_headers_methods
Method · 0.95
Calls
2
list
Class · 0.85
items
Method · 0.45
Tested by
2
test_custom_headers
Method · 0.76
test_request_headers_methods
Method · 0.76