mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 15:15:52 +00:00
http repsponds
This commit is contained in:
@@ -122,8 +122,11 @@ handle_request(
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
std::cout << "GOT BODY: " << req.body() << std::endl;
|
||||||
auto request = boost::json::parse(req.body()).as_object();
|
auto request = boost::json::parse(req.body()).as_object();
|
||||||
|
|
||||||
|
std::cout << "GOT REQUEST: " << request << std::endl;
|
||||||
|
|
||||||
auto builtResponse = buildResponse(request, etl, nullptr);
|
auto builtResponse = buildResponse(request, etl, nullptr);
|
||||||
|
|
||||||
send(response(
|
send(response(
|
||||||
@@ -135,6 +138,7 @@ handle_request(
|
|||||||
}
|
}
|
||||||
catch (std::exception const& e)
|
catch (std::exception const& e)
|
||||||
{
|
{
|
||||||
|
std::cout << e.what() << std::endl;
|
||||||
send(response(
|
send(response(
|
||||||
http::status::internal_server_error,
|
http::status::internal_server_error,
|
||||||
"text/html",
|
"text/html",
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
#include <server/listener.h>
|
#include <server/listener.h>
|
||||||
#include <server/session.h>
|
#include <server/session.h>
|
||||||
#include <reporting/ReportingETL.h>
|
#include <reporting/ReportingETL.h>
|
||||||
#include <reporting/server/listener.h>
|
#include <reporting/server/Listener.h>
|
||||||
#include <reporting/server/WsSession.h>
|
#include <reporting/server/WsSession.h>
|
||||||
#include <reporting/server/HttpSession.h>
|
#include <reporting/server/HttpSession.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
Reference in New Issue
Block a user