diff --git a/cpp/types.cc b/cpp/types.cc index 55ac948..e22f8b8 100644 --- a/cpp/types.cc +++ b/cpp/types.cc @@ -18,4 +18,11 @@ namespace f8 } } + std::string JsonHttpRequest::Response() + { + std::string response; + resp_xobj->ToJsonStr(response); + return a8::HttpResponse(response); + } + } diff --git a/cpp/types.h b/cpp/types.h index 2b8ca7b..346304f 100644 --- a/cpp/types.h +++ b/cpp/types.h @@ -24,6 +24,7 @@ namespace f8 JsonHttpRequest(); ~JsonHttpRequest(); + std::string Response(); }; enum SysInnerMesssage_e