MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / fromWebResponse

Function fromWebResponse

packages/hosts/mcp/src/envelope.ts:58–63  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

56 * with no content type.
57 */
58const fromWebResponse = (response: Response): HttpServerResponse.HttpServerResponse =>
59 HttpServerResponse.raw(response, {
60 status: response.status,
61 statusText: response.statusText,
62 headers: response.headers,
63 });
64
65/**
66 * The canonical CORS preflight `Response` (204) answered for an `OPTIONS` on

Callers 4

discoveryRouteFunction · 0.85
mcpDispatchFunction · 0.85
mcpRouteFunction · 0.85
envelope.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected