MCPcopy Index your code
hub / github.com/python/cpython / get_header

Method get_header

Lib/urllib/request.py:381–384  ·  view source on GitHub ↗
(self, header_name, default=None)

Source from the content-addressed store, hash-verified

379 header_name in self.unredirected_hdrs)
380
381 def get_header(self, header_name, default=None):
382 return self.headers.get(
383 header_name,
384 self.unredirected_hdrs.get(header_name, default))
385
386 def remove_header(self, header_name):
387 self.headers.pop(header_name, None)

Callers 12

_interactFunction · 0.95
test_netscape_miscMethod · 0.95
test_empty_pathMethod · 0.95
test_custom_headersMethod · 0.95
test_issue16464Method · 0.95
request_hostFunction · 0.45
request_hostFunction · 0.45
retry_http_basic_authMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 9

_interactFunction · 0.76
test_netscape_miscMethod · 0.76
test_empty_pathMethod · 0.76
test_custom_headersMethod · 0.76
test_issue16464Method · 0.76