Mercurial > minori
annotate include/core/http.h @ 166:54c5d80a737e
dep/animia: add libutil method
I changed the "linux" method to be "proc", because it isn't exactly Linux specific
this commit also has some changes to the x11 stuff:
instead of enumerating over only top-level windows, we iterate over ALL of them
this is because many X11 apps actually use multiple windows
for some reason, I still can't get it to work with VLC, but it picks up Firefox...
| author | paper@DavesDouble.local |
|---|---|
| date | Sun, 19 Nov 2023 04:21:56 -0500 |
| parents | f5940a575d83 |
| children | 2f5a9247e501 |
| rev | line source |
|---|---|
| 75 | 1 #ifndef __core__http_h |
| 2 #define __core__http_h | |
| 3 | |
| 77 | 4 #include <QByteArray> |
| 75 | 5 #include <string> |
| 6 #include <vector> | |
| 7 | |
| 8 namespace HTTP { | |
| 9 | |
|
100
f5940a575d83
track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents:
77
diff
changeset
|
10 QByteArray Get(const std::string& url, const std::vector<std::string>& headers = {}); |
|
f5940a575d83
track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents:
77
diff
changeset
|
11 QByteArray Post(const std::string& url, const std::string& data, const std::vector<std::string>& headers = {}); |
| 75 | 12 |
| 76 | 13 } // namespace HTTP |
| 75 | 14 |
| 15 #endif // __core__http_h |
