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

Method serialize

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

Source from the content-addressed store, hash-verified

83 return copy
84
85 def serialize(self) -> bytes:
86 # Since headers only contain ASCII characters, we can keep this simple.
87 return str(self).encode()
88
89 # Collection methods
90

Callers 1

prepare_connect_requestFunction · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected