diff options
| author | Jeff Garzik <[email protected]> | 2014-06-04 11:24:43 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2014-06-26 23:32:18 -0400 |
| commit | c912e22db08d0a44ad6fd027c09bbdf79c34dbbc (patch) | |
| tree | 0eb4939d21c7900a4bbbcdb35488d898bf2d3999 /src/rpcserver.cpp | |
| parent | Merge pull request #3715 (diff) | |
| download | discoin-c912e22db08d0a44ad6fd027c09bbdf79c34dbbc.tar.xz discoin-c912e22db08d0a44ad6fd027c09bbdf79c34dbbc.zip | |
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.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index 6552de8c4..b85b17c81 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 { |