aboutsummaryrefslogtreecommitdiff
path: root/src/rest.h
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2022-01-27 21:20:05 +0000
committerstickies-v <stickies-v@protonmail.com>2022-03-10 11:24:15 +0100
commit9f1c54787c81177dd56a31c881a9ad2834a122dc (patch)
treee176b2645ecceec4774f2c768f3d88d694387b29 /src/rest.h
parent219d728fcbde8c313940788838afa46c2fb88762 (diff)
downloadbitcoin-9f1c54787c81177dd56a31c881a9ad2834a122dc.tar.xz
Refactoring: move declarations to rest.h
This facilitates unit testing
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/rest.h b/src/rest.h
new file mode 100644
index 0000000000..70fed99879
--- /dev/null
+++ b/src/rest.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2015-2022 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef BITCOIN_REST_H
+#define BITCOIN_REST_H
+
+#include <string>
+
+enum class RetFormat {
+ UNDEF,
+ BINARY,
+ HEX,
+ JSON,
+};
+
+RetFormat ParseDataFormat(std::string& param, const std::string& strReq);
+
+#endif // BITCOIN_REST_H