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

Method get_all

Lib/wsgiref/headers.py:90–99  ·  view source on GitHub ↗

Return a list of all the values for the named field. These will be sorted in the order they appeared in the original header list or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. If

(self, name)

Source from the content-addressed store, hash-verified

88
89
90 def get_all(self, name):
91 """Return a list of all the values for the named field.
92
93 These will be sorted in the order they appeared in the original header
94 list or were added to this instance, and may contain duplicates. Any
95 fields deleted and re-inserted are always appended to the header list.
96 If no fields exist with the given name, returns an empty list.
97 """
98 name = self._convert_string_type(name.lower(), name=True)
99 return [kv[1] for kv in self._headers if kv[0].lower()==name]
100
101
102 def get(self,name,default=None):

Callers 2

testMappingInterfaceMethod · 0.95
testExtrasMethod · 0.95

Calls 2

_convert_string_typeMethod · 0.95
lowerMethod · 0.45

Tested by 2

testMappingInterfaceMethod · 0.76
testExtrasMethod · 0.76