MCPcopy Create free account
hub / github.com/vercel/vercel / decode_header_bytes

Function decode_header_bytes

python/vercel-runtime/src/vercel_runtime/headers.py:120–124  ·  view source on GitHub ↗
(value: bytes)

Source from the content-addressed store, hash-verified

118
119
120def decode_header_bytes(value: bytes) -> str:
121 try:
122 return value.decode()
123 except Exception:
124 return ""
125
126
127def set_vercel_headers_from_asgi_pairs(

Callers 4

__call__Method · 0.90

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected