aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-06-04 11:24:43 -0400
committerJeff Garzik <jgarzik@bitpay.com>2014-06-26 23:32:18 -0400
commitc912e22db08d0a44ad6fd027c09bbdf79c34dbbc (patch)
tree0eb4939d21c7900a4bbbcdb35488d898bf2d3999 /src/rpcserver.cpp
parent236ae8665efadf7b4456c0a9fbf204a5cb4ce9f4 (diff)
RPC cleanup: Improve HTTP server replies
1) support varying content types 2) support only sending the header 3) properly deliver error message as content, if HTTP error 4) move AcceptedConnection class to header, for wider use
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r--src/rpcserver.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp
index 6552de8c49..b85b17c812 100644
--- a/src/rpcserver.cpp
+++ b/src/rpcserver.cpp
@@ -393,16 +393,6 @@ bool ClientAllowed(const boost::asio::ip::address& address)
return false;
}
-class AcceptedConnection
-{
-public:
- virtual ~AcceptedConnection() {}
-
- virtual std::iostream& stream() = 0;
- virtual std::string peer_address_to_string() const = 0;
- virtual void close() = 0;
-};
-
template <typename Protocol>
class AcceptedConnectionImpl : public AcceptedConnection
{