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

Function set_headers

python/vercel-runtime/src/vercel_runtime/headers.py:108–117  ·  view source on GitHub ↗
(headers: Mapping[str, str] | None)

Source from the content-addressed store, hash-verified

106
107
108def set_headers(headers: Mapping[str, str] | None) -> None:
109 with contextlib.suppress(Exception):
110 try:
111 vercel_headers = import_module("vercel.headers")
112 except Exception:
113 return
114
115 sdk_set_headers = getattr(vercel_headers, "set_headers", None)
116 if callable(sdk_set_headers):
117 sdk_set_headers(headers)
118
119
120def decode_header_bytes(value: bytes) -> str:

Calls 1

import_moduleFunction · 0.85

Tested by

no test coverage detected