22 class MultiPartMimeObject final
28 std::string mimetype);
35 std::string mimetype_;
39 URL (
const std::string &url);
60 const std::string &json_str,
62 std::initializer_list<MultiPartMimeObject> mime_objects);
64 using AsyncStringResult = std::variant<std::string, std::exception_ptr>;
65 using GetContentsAsyncCallback = std::function<void (AsyncStringResult)>;
68 get_page_contents_async (
int timeout_ms, GetContentsAsyncCallback callback);
72 GetContentsAsyncCallback get_contents_callback_;