// SPDX-FileCopyrightText: 2022 Enrique M.G. // // SPDX-License-Identifier: LGPL-2.1-or-later #ifndef LLX_GVA_GATE_HTTP #define LLX_GVA_GATE_HTTP #include #include #include #include #include #include namespace lliurex { namespace http { class Response { public: uint64_t status; std::stringstream content; //Response(uint64_t status,std::stringstream content); edupals::variant::Variant parse(); }; class Client { protected: std::string server; public: Client(std::string url); Response get(std::string what); Response post(std::string what,std::map fields); }; } } #endif