switch back to boost::filesystem to avoid the requirement of c++17

This commit is contained in:
Chunting Gu
2020-09-07 19:01:31 +08:00
parent e7f88da2b2
commit 84476f75f7
31 changed files with 175 additions and 192 deletions
+4 -3
View File
@@ -1,10 +1,11 @@
#ifndef WEBCC_REQUEST_BUILDER_H_
#define WEBCC_REQUEST_BUILDER_H_
#include <filesystem>
#include <string>
#include <vector>
#include "boost/filesystem/path.hpp"
#include "webcc/request.h"
#include "webcc/url.h"
@@ -135,7 +136,7 @@ public:
// Use the file content as body.
// NOTE: Error::kFileError might be thrown.
RequestBuilder& File(const std::filesystem::path& path,
RequestBuilder& File(const boost::filesystem::path& path,
bool infer_media_type = true,
std::size_t chunk_size = 1024);
@@ -147,7 +148,7 @@ public:
// Add a form part of file.
RequestBuilder& FormFile(const std::string& name,
const std::filesystem::path& path,
const boost::filesystem::path& path,
const std::string& media_type = "");
// Add a form part of string data.