diff options
| author | Jeff Garzik <[email protected]> | 2014-11-11 04:52:43 -0500 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2014-11-11 04:52:43 -0500 |
| commit | e2655e0ab1fc36cd4a58a5145c53500cb7b2d4d0 (patch) | |
| tree | a4ebff17c00212fd883cd2089f2aef1a3cf8db0e /src/rpcserver.h | |
| parent | Merge pull request #5245 (diff) | |
| download | discoin-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.h | 6 |
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 |