mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
Common/HttpRequest: Add option to set cookies
This commit is contained in:
parent
62adfaa01c
commit
44784cf363
2 changed files with 13 additions and 0 deletions
|
@ -30,6 +30,8 @@ public:
|
|||
|
||||
using Response = std::optional<std::vector<u8>>;
|
||||
using Headers = std::map<std::string, std::optional<std::string>>;
|
||||
|
||||
void SetCookies(const std::string& cookies);
|
||||
Response Get(const std::string& url, const Headers& headers = {});
|
||||
Response Post(const std::string& url, const std::vector<u8>& payload,
|
||||
const Headers& headers = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue