add move semantic
This commit is contained in:
parent
da1ad8df58
commit
e91c0e1d90
@ -137,6 +137,18 @@ namespace trs
|
||||
return m_cli.Post("/", headers, data.dump(),"application/json" );
|
||||
}
|
||||
|
||||
auto post(std::string func_name, JSON& data)
|
||||
{
|
||||
httplib::Headers headers = {
|
||||
{ "TRS-server-token", m_token },
|
||||
{ "TRS-server-function", func_name },
|
||||
{ "Content-Type", "application/json" },
|
||||
{ "Cookie", "unione_lang=ru" }
|
||||
};
|
||||
|
||||
return m_cli.Post("/", headers, data.dump(),"application/json" );
|
||||
}
|
||||
|
||||
private:
|
||||
httplib::Client m_cli;
|
||||
std::string m_token;
|
||||
|
Loading…
Reference in New Issue
Block a user