Mercurial > minori
comparison include/core/http.h @ 100:f5940a575d83
track/constants: add many more video formats
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 03 Nov 2023 09:43:04 -0400 |
parents | 6f7385bd334c |
children | 2f5a9247e501 |
comparison
equal
deleted
inserted
replaced
99:503bc1547d49 | 100:f5940a575d83 |
---|---|
5 #include <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 namespace HTTP { | 8 namespace HTTP { |
9 | 9 |
10 QByteArray Get(std::string url, std::vector<std::string> headers = {}); | 10 QByteArray Get(const std::string& url, const std::vector<std::string>& headers = {}); |
11 QByteArray Post(std::string url, std::string data, std::vector<std::string> headers = {}); | 11 QByteArray Post(const std::string& url, const std::string& data, const std::vector<std::string>& headers = {}); |
12 | 12 |
13 } // namespace HTTP | 13 } // namespace HTTP |
14 | 14 |
15 #endif // __core__http_h | 15 #endif // __core__http_h |