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

Method sendBody

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

Source from the content-addressed store, hash-verified

1171}
1172
1173Result HttpResponse::sendBody(int code, StringSpan body, StringSpan contentType)
1174{
1175 return sendBytes(code, body.toCharSpan(), contentType);
1176}
1177
1178Result HttpResponse::sendText(int code, StringSpan body) { return sendBody(code, body, "text/plain; charset=utf-8"); }
1179

Callers 1

responseBodyHelpersMethod · 0.80

Calls

no outgoing calls

Tested by 1

responseBodyHelpersMethod · 0.64