MCPcopy Create free account
hub / github.com/ByConity/ByConity / sendResult

Method sendResult

src/Server/APIRequestHandler.cpp:200–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void APIRequestHandler::sendResult(const Result & res, HTTPServerResponse & response)
201{
202 using namespace rapidjson;
203
204 StringBuffer buffer;
205 Writer<StringBuffer> writer(buffer);
206 res.doc.Accept(writer);
207 const auto & str = buffer.GetString();
208 LOG_TRACE(log, "Response JSON: {}", str);
209 *response.send() << str << std::endl;
210}
211
212void APIRequestHandler::trySendExceptionToClient(
213 const std::string & exception_msg, int exception_code, [[maybe_unused]] HTTPServerRequest & request, HTTPServerResponse & response)

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected