Refine files upload.

This commit is contained in:
Chunting Gu
2019-04-10 13:48:33 +08:00
parent ba705e930e
commit 5f9532759e
11 changed files with 207 additions and 140 deletions
-18
View File
@@ -154,24 +154,6 @@ enum class ContentEncoding {
// Return default user agent for HTTP headers.
const std::string& UserAgent();
// File for HTTP transfer (upload/download).
class File {
public:
File() = default;
File(const std::string& file_path);
// Binary file data.
// TODO: don't use std::string?
std::string data;
// E.g., example.jpg
std::string file_name;
// E.g., image/jpeg
std::string mime_type;
};
} // namespace http
// -----------------------------------------------------------------------------