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

Method has_header

Lib/urllib/request.py:377–379  ·  view source on GitHub ↗
(self, header_name)

Source from the content-addressed store, hash-verified

375 self.unredirected_hdrs[key.capitalize()] = val
376
377 def has_header(self, header_name):
378 return (header_name in self.headers or
379 header_name in self.unredirected_hdrs)
380
381 def get_header(self, header_name, default=None):
382 return self.headers.get(

Callers 15

test_domain_allowMethod · 0.95
test_domain_blockMethod · 0.95
test_secure_blockMethod · 0.95
test_custom_headersMethod · 0.95
dataMethod · 0.95
add_cookie_headerMethod · 0.45
http_openMethod · 0.45
test_http_body_fileMethod · 0.45

Calls

no outgoing calls

Tested by 13

test_domain_allowMethod · 0.76
test_domain_blockMethod · 0.76
test_secure_blockMethod · 0.76
test_custom_headersMethod · 0.76
http_openMethod · 0.36
test_http_body_fileMethod · 0.36
test_cookie_redirectMethod · 0.36