Holds options that can be specified when starting a new download with downloadToFile().
More...
#include <juce_URL.h>
Holds options that can be specified when starting a new download with downloadToFile().
◆ withExtraHeaders()
auto URL::DownloadTaskOptions::withExtraHeaders |
( |
String | value | ) |
const |
|
nodiscard |
Specifies headers to add to the request.
◆ withSharedContainer()
auto URL::DownloadTaskOptions::withSharedContainer |
( |
String | value | ) |
const |
|
nodiscard |
On iOS, specifies the container where the downloaded file will be stored.
If you initiate a download task from inside an app extension on iOS, you must supply this option.
This is currently unused on other platforms.
◆ withListener()
Specifies an observer for the download task.
◆ withUsePost()
auto URL::DownloadTaskOptions::withUsePost |
( |
bool | value | ) |
const |
|
nodiscard |
Specifies whether a post command should be used.
◆ extraHeaders
String URL::DownloadTaskOptions::extraHeaders |
◆ sharedContainer
String URL::DownloadTaskOptions::sharedContainer |
◆ listener
◆ usePost
bool URL::DownloadTaskOptions::usePost = false |
The documentation for this class was generated from the following file: