|
|
| URL (const std::string &url) |
| std::string | get_page_contents (int timeout=0) |
| | Returns the contents of the page synchronously.
|
| utils::Utf8String | post_json_no_auth (const std::string &json_str, int timeout, std::initializer_list< MultiPartMimeObject > mime_objects) |
| | Posts the given JSON to the URL without any authentication.
|
|
std::future< void > | get_page_contents_async (int timeout_ms, GetContentsAsyncCallback callback) |
Definition at line 19 of file networking.h.
◆ AsyncStringResult
| using zrythm::networking::URL::AsyncStringResult = std::variant<std::string, std::exception_ptr> |
◆ GetContentsAsyncCallback
| using zrythm::networking::URL::GetContentsAsyncCallback = std::function<void (AsyncStringResult)> |
◆ get_page_contents()
| std::string zrythm::networking::URL::get_page_contents |
( |
int | timeout = 0 | ) |
|
Returns the contents of the page synchronously.
- Parameters
-
| timeout | Timeout in milliseconds. If 0, this will use whatever default setting the OS chooses. If a negative number, it will be infinite. |
- Exceptions
-
◆ post_json_no_auth()
Posts the given JSON to the URL without any authentication.
- Parameters
-
| timeout | Timeout, in milliseconds. |
| mime_objects | Optional files to send as multi-part mime objects. |
- Exceptions
-
The documentation for this class was generated from the following file: