+ // Content-Type header:
+ anna::http::Header* contentType = response->find("Content-Type");
+ if (contentType == NULL)
+ contentType = response->createHeader("Content-Type");
+ contentType->setValue("application/json");
+
+ // Json Body for response:
+ std::stringstream ss;
+
+ ss << R"({ "result":")" << (opOk ? "true":"false") << R"(", "data": )" << std::quoted(response_content) << R"( })";
+ anna::DataBlock db_content(true);
+ db_content = ss.str();
+ response->setBody(db_content);
+