MCPcopy Create free account
hub / github.com/python-websockets/websockets / copy

Method copy

src/websockets/datastructures.py:79–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 return f"{self.__class__.__name__}({self._list!r})"
78
79 def copy(self) -> Headers:
80 copy = self.__class__()
81 copy._dict = self._dict.copy()
82 copy._list = self._list.copy()
83 return copy
84
85 def serialize(self) -> bytes:
86 # Since headers only contain ASCII characters, we can keep this simple.

Callers 8

replayFunction · 0.80
replayFunction · 0.80
broadcast_messagesFunction · 0.80
create_connectionMethod · 0.80
test_copyMethod · 0.80
test_copyMethod · 0.80
process_responseMethod · 0.80
process_responseMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_copyMethod · 0.64
test_copyMethod · 0.64
process_responseMethod · 0.64
process_responseMethod · 0.64