MCPcopy Index your code
hub / github.com/BuilderIO/agent-native / next

Function next

packages/core/src/integrations/plugin.spec.ts:106–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 };
105 let index = 0;
106 const next = async (): Promise<unknown> => {
107 const middleware = nitroApp.h3["~middleware"][index++];
108 if (!middleware) return { fellThrough: true };
109 return middleware(event, next);
110 };
111 const responseBody = await next();
112 return { body: responseBody, status: event.res.status };
113}

Callers 1

dispatchFunction · 0.70

Calls 1

middlewareFunction · 0.85

Tested by

no test coverage detected