// Copyright 2017 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include #include #include #include #include "Common/CommonTypes.h" namespace Common { class HttpRequest final { public: HttpRequest(); ~HttpRequest(); bool IsValid() const; using Response = std::optional>; Response Get(const std::string& url); Response Post(const std::string& url, const std::vector& payload); Response Post(const std::string& url, const std::string& payload); private: class Impl; std::unique_ptr m_impl; }; } // namespace Common