MCPcopy Create free account
hub / github.com/Sandpack/nodebox-runtime / respondWith

Method respondWith

tests/setup/MockCdn.ts:35–38  ·  view source on GitHub ↗
(res: FastifyReply, data: unknown)

Source from the content-addressed store, hash-verified

33 }
34
35 private respondWith(res: FastifyReply, data: unknown) {
36 res.type('application/octet-stream');
37 res.send(Buffer.from(encode(data)));
38 }
39
40 private dependencyQueryMiddleware(req: FastifyRequest, res: FastifyReply): void {
41 res.header('access-control-allow-origin', '*');

Callers 2

moduleQueryMiddlewareMethod · 0.95

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected