mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move streaming Json objects to ripple/json.
This commit is contained in:
@@ -45,7 +45,7 @@ std::string getHTTPHeaderTimestamp ()
|
||||
return std::string (buffer);
|
||||
}
|
||||
|
||||
void HTTPReply (int nStatus, std::string const& content, RPC::Output output)
|
||||
void HTTPReply (int nStatus, std::string const& content, Json::Output output)
|
||||
{
|
||||
if (ShouldLog (lsTRACE, RPC))
|
||||
{
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
#define RIPPLE_SERVER_JSONRPCUTIL_H_INCLUDED
|
||||
|
||||
#include <ripple/json/json_value.h>
|
||||
#include <ripple/rpc/Output.h>
|
||||
#include <ripple/json/Output.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
void HTTPReply (int nStatus, std::string const& strMsg, RPC::Output);
|
||||
void HTTPReply (int nStatus, std::string const& strMsg, Json::Output);
|
||||
|
||||
} // ripple
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ ServerHandlerImp::onHandoff (HTTP::Session& session,
|
||||
}
|
||||
|
||||
static inline
|
||||
RPC::Output makeOutput (HTTP::Session& session)
|
||||
Json::Output makeOutput (HTTP::Session& session)
|
||||
{
|
||||
return [&](boost::string_ref const& b)
|
||||
{
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
#define RIPPLE_SERVER_SERVERHANDLERIMP_H_INCLUDED
|
||||
|
||||
#include <ripple/core/Job.h>
|
||||
#include <ripple/json/Output.h>
|
||||
#include <ripple/server/ServerHandler.h>
|
||||
#include <ripple/server/Session.h>
|
||||
#include <ripple/rpc/Output.h>
|
||||
#include <ripple/rpc/RPCHandler.h>
|
||||
#include <ripple/app/main/CollectorManager.h>
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
~ServerHandlerImp();
|
||||
|
||||
private:
|
||||
using Output = RPC::Output;
|
||||
using Output = Json::Output;
|
||||
using Yield = RPC::Yield;
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user