| 101 | } |
| 102 | |
| 103 | nlohmann::json BaseHttpHandler::POSTJson( |
| 104 | const std::string& uri, const nlohmann::json& body, const std::string& adr, int port) const |
| 105 | { |
| 106 | return nlohmann::json::parse(POSTString(uri, "application/json", body.dump(), adr, port)); |
| 107 | } |
| 108 | |
| 109 | nlohmann::json BaseHttpHandler::PUTJson( |
| 110 | const std::string& uri, const nlohmann::json& body, const std::string& adr, int port) const |