MCPcopy
hub / github.com/urllib3/urllib3 / _copy_from

Method _copy_from

src/urllib3/_collections.py:428–431  ·  view source on GitHub ↗
(self, other: HTTPHeaderDict)

Source from the content-addressed store, hash-verified

426 return f"{type(self).__name__}({dict(self.itermerged())})"
427
428 def _copy_from(self, other: HTTPHeaderDict) -> None:
429 for key in other:
430 val = other.getlist(key)
431 self._container[key.lower()] = [key, *val]
432
433 def copy(self) -> Self:
434 clone = type(self)()

Callers 2

__init__Method · 0.95
copyMethod · 0.80

Calls 1

getlistMethod · 0.80

Tested by

no test coverage detected