Add JSON-RPC capability

Inline nlohmann/json for the JSON parsing itself, and handle requests
with the same SCGI interface as XML-RPC.

Based off the work in https://github.com/jesec/rtorrent
This commit is contained in:
kannibalox
2025-01-04 20:50:55 -05:00
committed by Jari Sundell
parent 78915746ee
commit 9f48226663
30 changed files with 26375 additions and 307 deletions
+2 -1
View File
@@ -36,6 +36,7 @@
#include "config.h"
#include "rpc/rpc_manager.h"
#include <algorithm>
#include <fstream>
#include <string>
@@ -49,7 +50,7 @@
namespace rpc {
CommandMap commands;
XmlRpc xmlrpc;
RpcManager rpc;
ExecFile execFile;
inline bool command_map_is_space(char c) {