MCPcopy Index your code
hub / github.com/python-websockets/websockets / d

Function d

src/websockets/http11.py:50–55  ·  view source on GitHub ↗

Decode a bytestring for interpolating into an error message.

(value: bytes | bytearray)

Source from the content-addressed store, hash-verified

48
49
50def d(value: bytes | bytearray) -> str:
51 """
52 Decode a bytestring for interpolating into an error message.
53
54 """
55 return value.decode(errors="backslashreplace")
56
57
58# See https://datatracker.ietf.org/doc/html/rfc7230#appendix-B.

Callers 3

parseMethod · 0.70
parseMethod · 0.70
parse_headersFunction · 0.70

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected