MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / sendJson

Function sendJson

scripts/dev-web-bridge-node.ts:251–255  ·  view source on GitHub ↗
(response: http.ServerResponse, statusCode: number, payload: unknown)

Source from the content-addressed store, hash-verified

249}
250
251function sendJson(response: http.ServerResponse, statusCode: number, payload: unknown) {
252 response.statusCode = statusCode
253 response.setHeader('content-type', 'application/json; charset=utf-8')
254 response.end(JSON.stringify(payload))
255}
256
257async function handleBridgeRequest(
258 channel: DesktopRequestChannel,

Callers 2

handleBridgeRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected