Add fake request class for cached responses.

This commit is contained in:
Henrik Rydgård committed 2025-01-23 13:02:06 +01:00
1 parent c3cc3da8fe
commit e4d08407ab
6 files changed
+23 -9

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@
namespace http {
HTTPSRequest::HTTPSRequest(RequestMethod method, std::string_view url, std::string_view postData, std::string_view postMime, const Path &outfile, RequestFlags progressBarMode, std::string_view name)
: Request(method, url, name, &cancelled_, progressBarMode), method_(method), postData_(postData), postMime_(postMime) {
HTTPSRequest::HTTPSRequest(RequestMethod method, std::string_view url, std::string_view postData, std::string_view postMime, const Path &outfile, RequestFlags flags, std::string_view name)
: Request(method, url, name, &cancelled_, flags), method_(method), postData_(postData), postMime_(postMime) {
outfile_ = outfile;
}