Function
postBody
(body: unknown, headers: Record<string, string> = MCP_POST_HEADERS)
Source from the content-addressed store, hash-verified
| 219 | } as const; |
| 220 | |
| 221 | const postBody = (body: unknown, headers: Record<string, string> = MCP_POST_HEADERS): Request => |
| 222 | new Request("https://host.test/mcp", { |
| 223 | method: "POST", |
| 224 | headers, |
| 225 | body: JSON.stringify(body), |
| 226 | }); |
| 227 | |
| 228 | const guard = (request: Request): Promise<Response | null> => |
| 229 | Effect.runPromise(preInitializeMethodNotFound(request)); |
Tested by
no test coverage detected