aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-11-11 04:52:43 -0500
committerJeff Garzik <jgarzik@bitpay.com>2014-11-11 04:52:43 -0500
commite2655e0ab1fc36cd4a58a5145c53500cb7b2d4d0 (patch)
treea4ebff17c00212fd883cd2089f2aef1a3cf8db0e /src/rpcserver.h
parent83f5daf2fe6e2f42c81576097f4084d2788b454b (diff)
downloadbitcoin-e2655e0ab1fc36cd4a58a5145c53500cb7b2d4d0.tar.xz
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 2a258dd89a..60793f79ae 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