Merge branch 'refactor/net-split-headers-to-proxy-class' of https://github.com/Ryex/PrismLauncher into refactor/NetActions

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-08-05 19:16:57 +03:00
17 changed files with 54 additions and 32 deletions

View File

@ -27,7 +27,7 @@ namespace Net {
class ApiHeaderProxy : public HeaderProxy {
public:
ApiHeaderProxy() : HeaderProxy(){};
ApiHeaderProxy() : HeaderProxy() {}
virtual ~ApiHeaderProxy() = default;
public:

View File

@ -48,7 +48,7 @@ class Download : public NetRequest {
Q_OBJECT
public:
using Ptr = shared_qobject_ptr<class Download>;
explicit Download() : NetRequest() { logCat = taskDownloadLogC; };
explicit Download() : NetRequest() { logCat = taskDownloadLogC; }
#if defined(LAUNCHER_APPLICATION)
static auto makeCached(QUrl url, MetaEntryPtr entry, Options options = Option::NoOptions) -> Download::Ptr;

View File

@ -43,7 +43,7 @@ class HeaderProxy {
for (auto header : headers(request)) {
request.setRawHeader(header.headerName, header.headerValue);
}
};
}
};
} // namespace Net

View File

@ -67,7 +67,7 @@ class NetRequest : public NetAction {
public:
void addValidator(Validator* v);
auto abort() -> bool override;
auto canAbort() const -> bool override { return true; };
auto canAbort() const -> bool override { return true; }
private:
auto handleRedirect() -> bool;

View File

@ -27,7 +27,7 @@ namespace Net {
class RawHeaderProxy : public HeaderProxy {
public:
RawHeaderProxy() : HeaderProxy(){};
RawHeaderProxy() : HeaderProxy() {}
virtual ~RawHeaderProxy() = default;
public: