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

Method sendEmpty

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

Source from the content-addressed store, hash-verified

1180Result HttpResponse::sendJson(int code, StringSpan body) { return sendBody(code, body, "application/json"); }
1181
1182Result HttpResponse::sendEmpty(int code)
1183{
1184 SC_TRY(startResponse(code));
1185 SC_TRY(addContentLength(0));
1186 SC_TRY(sendHeaders());
1187 return end();
1188}
1189
1190Result HttpResponse::sendMethodNotAllowed(StringSpan allow)
1191{

Callers 5

emptyResponseHelperMethod · 0.80
onEndMethod · 0.80
putFileMethod · 0.80
onFinishMethod · 0.80
onDataMethod · 0.80

Calls 1

endFunction · 0.85

Tested by 2

emptyResponseHelperMethod · 0.64
onEndMethod · 0.64