MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / sendJson

Method sendJson

Libraries/Http/HttpConnection.cpp:1180–1180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178Result HttpResponse::sendText(int code, StringSpan body) { return sendBody(code, body, "text/plain; charset=utf-8"); }
1179
1180Result HttpResponse::sendJson(int code, StringSpan body) { return sendBody(code, body, "application/json"); }
1181
1182Result HttpResponse::sendEmpty(int code)
1183{

Callers 1

responseBodyHelpersMethod · 0.80

Calls

no outgoing calls

Tested by 1

responseBodyHelpersMethod · 0.64