mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Enable asynchronous handling of HTTP-RPC (RIPD-390)
* Activate async code path * Tidy up HTTP server code * Use shared_ptr in HTTP server * Remove check for unspecified IP * Remove hairtrigger * Fix missing HTTP authorization check * Fix multisocket flags in RPC-HTTP server * Fix authorization failure when no credentials required * Addresses RIPD-159, RIPD-161, RIPD-390
This commit is contained in:
@@ -23,11 +23,12 @@
|
||||
#include <ripple/unity/net.h>
|
||||
#include <ripple/unity/rpcx.h>
|
||||
#include <ripple/unity/websocket.h>
|
||||
#include <ripple/unity/http.h>
|
||||
#include <ripple/unity/resource.h>
|
||||
#include <ripple/unity/sitefiles.h>
|
||||
#include <ripple/unity/validators.h>
|
||||
|
||||
#include <ripple/http/Server.h>
|
||||
|
||||
#include <ripple/module/app/main/CollectorManager.cpp>
|
||||
#include <ripple/module/app/main/NodeStoreScheduler.cpp>
|
||||
#include <ripple/module/app/main/IoServicePool.cpp>
|
||||
|
||||
@@ -19,19 +19,9 @@
|
||||
|
||||
#include <BeastConfig.h>
|
||||
|
||||
#include <ripple/unity/http.h>
|
||||
|
||||
#include <ripple/unity/net.h>
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
#include <ripple/http/impl/Door.cpp>
|
||||
#include <ripple/http/impl/Peer.cpp>
|
||||
#include <ripple/http/impl/Port.cpp>
|
||||
#include <ripple/http/impl/ScopedStream.cpp>
|
||||
|
||||
#include <ripple/http/impl/Types.h>
|
||||
#include <ripple/http/impl/ServerImpl.h>
|
||||
#include <ripple/http/impl/Peer.h>
|
||||
#include <ripple/http/impl/Door.h>
|
||||
#include <ripple/http/impl/ServerImpl.cpp>
|
||||
#include <ripple/http/impl/Server.cpp>
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
This file is part of rippled: https://github.com/ripple/rippled
|
||||
Copyright (c) 2012, 2013 Ripple Labs Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifndef RIPPLE_HTTP_H_INCLUDED
|
||||
#define RIPPLE_HTTP_H_INCLUDED
|
||||
|
||||
// VFALCO This entire file is deprecated now, I'm working on a replacement
|
||||
|
||||
// VFALCO NOTE this sucks that we have to include asio in the header
|
||||
// just for HTTPMessage!!
|
||||
#include <beast/module/asio/asio.h>
|
||||
|
||||
#include <ripple/http/api/Port.h>
|
||||
#include <ripple/http/api/ScopedStream.h>
|
||||
#include <ripple/http/api/Session.h>
|
||||
#include <ripple/http/api/Handler.h>
|
||||
#include <ripple/http/api/Server.h>
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user