1 // Copyright (c) 2015-2018 The Bitcoin Core developers 2 // Distributed under the MIT software license, see the accompanying 3 // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 5 #ifndef BITCOIN_HTTPRPC_H 6 #define BITCOIN_HTTPRPC_H 7 8 #include <string> 9 #include <map> 10 11 /** Start HTTP RPC subsystem. 12 * Precondition; HTTP and RPC has been started. 13 */ 14 bool StartHTTPRPC(); 15 /** Interrupt HTTP RPC subsystem. 16 */ 17 void InterruptHTTPRPC(); 18 /** Stop HTTP RPC subsystem. 19 * Precondition; HTTP and RPC has been stopped. 20 */ 21 void StopHTTPRPC(); 22 23 /** Start HTTP REST subsystem. 24 * Precondition; HTTP and RPC has been started. 25 */ 26 void StartREST(); 27 /** Interrupt RPC REST subsystem. 28 */ 29 void InterruptREST(); 30 /** Stop HTTP REST subsystem. 31 * Precondition; HTTP and RPC has been stopped. 32 */ 33 void StopREST(); 34 35 #endif 36