| 95 | } |
| 96 | |
| 97 | nlohmann::json BaseHttpHandler::GETJson( |
| 98 | const std::string& uri, const nlohmann::json& body, const std::string& adr, int port) const |
| 99 | { |
| 100 | return nlohmann::json::parse(GETString(uri, "application/json", body.dump(), adr, port)); |
| 101 | } |
| 102 | |
| 103 | nlohmann::json BaseHttpHandler::POSTJson( |
| 104 | const std::string& uri, const nlohmann::json& body, const std::string& adr, int port) const |