24 class MultiPartMimeObject final
29 std::filesystem::path filepath,
30 std::string mimetype);
36 std::filesystem::path filepath_;
37 std::string mimetype_;
41 URL (
const std::string &url);
45 URL (
const URL &) =
delete;
46 URL &operator= (
const URL &) =
delete;
47 URL (URL &&) noexcept;
48 URL &operator= (URL &&) noexcept;
69 const std::
string &json_str,
73 using AsyncStringResult = std::variant<std::
string, std::exception_ptr>;
74 using GetContentsAsyncCallback = std::function<
void (AsyncStringResult)>;
77 get_page_contents_async (
int timeout_ms, GetContentsAsyncCallback callback);
81 std::unique_ptr<Impl> impl_;