MCPcopy
hub / github.com/encode/httpx / update

Method update

httpx/_models.py:274–279  ·  httpx/_models.py::Headers.update
(self, headers: HeaderTypes | None = None)

Source from the content-addressed store, hash-verified

272 return split_values
273
274 def update(self, headers: HeaderTypes | None = None) -> None: class="cm"># type: ignore
275 headers = Headers(headers)
276 for key in headers.keys():
277 if key in self:
278 self.pop(key)
279 self._list.extend(headers._list)
280
281 def copy(self) -> Headers:
282 return Headers(self, encoding=self.encoding)

Callers 13

headersMethod · 0.95
_merge_headersMethod · 0.95
_multipart.pyFile · 0.45
copy_withMethod · 0.45
download_responseFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
clean_environFunction · 0.45
test_build_requestFunction · 0.45
test_build_post_requestFunction · 0.45
test_header_updateFunction · 0.45

Calls 2

keysMethod · 0.95
HeadersClass · 0.85

Tested by 6

clean_environFunction · 0.36
test_build_requestFunction · 0.36
test_build_post_requestFunction · 0.36
test_header_updateFunction · 0.36
test_build_requestFunction · 0.36