aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2014-11-11 04:52:43 -0500
committerJeff Garzik <[email protected]>2014-11-11 04:52:43 -0500
commite2655e0ab1fc36cd4a58a5145c53500cb7b2d4d0 (patch)
treea4ebff17c00212fd883cd2089f2aef1a3cf8db0e /src/rpcserver.h
parentMerge pull request #5245 (diff)
downloaddiscoin-e2655e0ab1fc36cd4a58a5145c53500cb7b2d4d0.tar.xz
discoin-e2655e0ab1fc36cd4a58a5145c53500cb7b2d4d0.zip
Add unauthenticated HTTP REST interface to public blockchain data.
Diffstat (limited to 'src/rpcserver.h')
-rw-r--r--src/rpcserver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h
index 2a258dd89..60793f79a 100644
--- a/src/rpcserver.h
+++ b/src/rpcserver.h
@@ -218,4 +218,10 @@ extern json_spirit::Value gettxout(const json_spirit::Array& params, bool fHelp)
extern json_spirit::Value verifychain(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getchaintips(const json_spirit::Array& params, bool fHelp);
+// in rest.cpp
+extern bool HTTPReq_REST(AcceptedConnection *conn,
+ std::string& strURI,
+ std::map<std::string, std::string>& mapHeaders,
+ bool fRun);
+
#endif // BITCOIN_RPCSERVER_H