Function
postBody
(body: unknown, headers: Record<string, string> = MCP_POST_HEADERS)
Source from the content-addressed store, hash-verified
| 239 | } as const; |
| 240 | |
| 241 | const postBody = (body: unknown, headers: Record<string, string> = MCP_POST_HEADERS): Request => |
| 242 | new Request("https://host.test/mcp", { |
| 243 | method: "POST", |
| 244 | headers, |
| 245 | body: JSON.stringify(body), |
| 246 | }); |
| 247 | |
| 248 | const guard = (request: Request): Promise<Response | null> => |
| 249 | Effect.runPromise(preInitializeMethodNotFound(request)); |
Tested by
no test coverage detected