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

Function d

src/websockets/legacy/http.py:17–22  ·  view source on GitHub ↗

Decode a bytestring for interpolating into an error message.

(value: bytes)

Source from the content-addressed store, hash-verified

15
16
17def d(value: bytes) -> str:
18 """
19 Decode a bytestring for interpolating into an error message.
20
21 """
22 return value.decode(errors="backslashreplace")
23
24
25# See https://datatracker.ietf.org/doc/html/rfc7230#appendix-B.

Callers 3

read_requestFunction · 0.70
read_responseFunction · 0.70
read_headersFunction · 0.70

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected