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

Method add_unredirected_header

Lib/urllib/request.py:373–375  ·  view source on GitHub ↗
(self, key, val)

Source from the content-addressed store, hash-verified

371 self.headers[key.capitalize()] = val
372
373 def add_unredirected_header(self, key, val):
374 # will not be added to a redirected request
375 self.unredirected_hdrs[key.capitalize()] = val
376
377 def has_header(self, header_name):
378 return (header_name in self.headers or

Calls 1

capitalizeMethod · 0.45