Mercurial > minori
comparison include/core/http.h @ 413:192da585a0a8 default tip
*: fix formatting
the clang-format file was broken andjust using LLVM defaults.
now it's fixed and is more in line with what I actually prefer my
code to look like -- esp. with regards to tabulators
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 25 Jul 2026 14:54:32 -0400 |
| parents | 811697ad826a |
| children |
comparison
equal
deleted
inserted
replaced
| 412:05aed03e0111 | 413:192da585a0a8 |
|---|---|
| 33 Post, | 33 Post, |
| 34 Patch | 34 Patch |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 QByteArray Request(const std::string &url, const std::vector<std::string> &headers = {}, const std::string &data = "", | 37 QByteArray Request(const std::string &url, const std::vector<std::string> &headers = {}, const std::string &data = "", |
| 38 Type type = Type::Get); | 38 Type type = Type::Get); |
| 39 | 39 |
| 40 class RequestThread final : public QThread { | 40 class RequestThread final : public QThread { |
| 41 Q_OBJECT | 41 Q_OBJECT |
| 42 | 42 |
| 43 public: | 43 public: |
| 44 RequestThread(Type type = Type::Get, QObject *parent = nullptr); | 44 RequestThread(Type type = Type::Get, QObject *parent = nullptr); |
| 45 RequestThread(const std::string &url, const std::vector<std::string> &headers = {}, const std::string &data = "", | 45 RequestThread(const std::string &url, const std::vector<std::string> &headers = {}, const std::string &data = "", |
| 46 Type type = Type::Get, QObject *parent = nullptr); | 46 Type type = Type::Get, QObject *parent = nullptr); |
| 47 ~RequestThread(); | 47 ~RequestThread(); |
| 48 | 48 |
| 49 void SetUrl(const std::string &url); | 49 void SetUrl(const std::string &url); |
| 50 void SetHeaders(const std::vector<std::string> &headers); | 50 void SetHeaders(const std::vector<std::string> &headers); |
| 51 void SetData(const std::string &data); | 51 void SetData(const std::string &data); |
