MCPcopy Index your code
hub / github.com/RustPython/RustPython / get

Method get

Lib/wsgiref/headers.py:94–100  ·  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

92
93
94 def get(self,name,default=None):
95 """Get the first header value for 'name', or return 'default'"""
96 name = self._convert_string_type(name.lower())
97 for k,v in self._headers:
98 if k.lower()==name:
99 return v
100 return default
101
102
103 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