Move streaming Json objects to ripple/json.

This commit is contained in:
Tom Ritchford
2015-01-27 12:10:42 -05:00
parent c5d673c426
commit e9b7003cf5
32 changed files with 173 additions and 184 deletions

View File

@@ -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))
{

View File

@@ -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

View File

@@ -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)
{

View File

@@ -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