MCPcopy Create free account
hub / github.com/CopilotKit/aimock / handleOptions

Function handleOptions

src/server.ts:229–233  ·  view source on GitHub ↗
(res: http.ServerResponse)

Source from the content-addressed store, hash-verified

227}
228
229function handleOptions(res: http.ServerResponse): void {
230 setCorsHeaders(res);
231 res.writeHead(204);
232 res.end();
233}
234
235function handleNotFound(res: http.ServerResponse, message: string): void {
236 setCorsHeaders(res);

Callers 1

handleHttpRequestFunction · 0.85

Calls 2

setCorsHeadersFunction · 0.85
endMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…