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

Method get

Lib/wsgiref/headers.py:102–108  ·  view source on GitHub ↗

Get the first header value for 'name', or return 'default

(self,name,default=None)

Source from the content-addressed store, hash-verified

100
101
102 def get(self,name,default=None):
103 """Get the first header value for 'name', or return 'default'"""
104 name = self._convert_string_type(name.lower(), name=True)
105 for k,v in self._headers:
106 if k.lower()==name:
107 return v
108 return default
109
110
111 def keys(self):

Callers 12

__getitem__Method · 0.95
__contains__Method · 0.95
setdefaultMethod · 0.95
testMappingInterfaceMethod · 0.95
check_environFunction · 0.45
guess_schemeFunction · 0.45
application_uriFunction · 0.45
request_uriFunction · 0.45
shift_path_infoFunction · 0.45
get_environMethod · 0.45
read_environFunction · 0.45
__init__Method · 0.45

Calls 2

_convert_string_typeMethod · 0.95
lowerMethod · 0.45

Tested by 1

testMappingInterfaceMethod · 0.76