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

Method on_request

python/vercel-runtime/src/vercel_runtime/vc_init.py:1472–1474  ·  view source on GitHub ↗
(self, headers: Any, status_code: int)

Source from the content-addressed store, hash-verified

1470 self.put_message({"type": "http.disconnect"})
1471
1472 def on_request(self, headers: Any, status_code: int) -> None:
1473 self.response["statusCode"] = status_code
1474 self.response["headers"] = format_headers(headers, decode=True)
1475
1476 def on_response(self) -> None:
1477 if self.body:

Callers 1

sendMethod · 0.95

Calls 1

format_headersFunction · 0.85

Tested by

no test coverage detected