MCPcopy Create free account
hub / github.com/Botloader/botloader / sendJson

Method sendJson

components/runtime/src/ts/httpclient.ts:206–209  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

204 }
205
206 async sendJson(data: any) {
207 const serialized = encodeText(JSON.stringify(data));
208 return this.send(new Uint8ArrayBody(serialized, "application/json"));
209 }
210
211 async sendText(data: string) {
212 const encoded = encodeText(data);

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
encodeTextFunction · 0.90

Tested by

no test coverage detected