MCPcopy
hub / github.com/encode/starlette / append

Method append

starlette/datastructures.py:649–655  ·  view source on GitHub ↗

Append a header, preserving any duplicate entries.

(self, key: str, value: str)

Source from the content-addressed store, hash-verified

647 self[key] = val
648
649 def append(self, key: str, value: str) -> None:
650 """
651 Append a header, preserving any duplicate entries.
652 """
653 append_key = key.lower().encode("latin-1")
654 append_value = value.encode("latin-1")
655 self._list.append((append_key, append_value))
656
657 def add_vary_header(self, vary: str) -> None:
658 existing = self.get("vary")

Callers 1

send_wrapperMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected