OpenShot Audio Library | OpenShotAudio  0.6.0
juce::URL::DownloadTaskOptions Class Reference

#include <juce_URL.h>

Collaboration diagram for juce::URL::DownloadTaskOptions:
[legend]

Public Member Functions

auto withExtraHeaders (String value) const
 
auto withSharedContainer (String value) const
 
auto withListener (DownloadTaskListener *value) const
 
auto withUsePost (bool value) const
 

Public Attributes

String extraHeaders
 
String sharedContainer
 
DownloadTaskListenerlistener = nullptr
 
bool usePost = false
 

Detailed Description

Holds options that can be specified when starting a new download with downloadToFile().

Definition at line 459 of file juce_URL.h.

Member Function Documentation

◆ withExtraHeaders()

auto juce::URL::DownloadTaskOptions::withExtraHeaders ( String  value) const
inline

Specifies headers to add to the request.

Definition at line 468 of file juce_URL.h.

Referenced by juce::URL::downloadToFile().

◆ withListener()

auto juce::URL::DownloadTaskOptions::withListener ( DownloadTaskListener value) const
inline

Specifies an observer for the download task.

Definition at line 480 of file juce_URL.h.

◆ withSharedContainer()

auto juce::URL::DownloadTaskOptions::withSharedContainer ( String  value) const
inline

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.

Definition at line 477 of file juce_URL.h.

◆ withUsePost()

auto juce::URL::DownloadTaskOptions::withUsePost ( bool  value) const
inline

Specifies whether a post command should be used.

Definition at line 483 of file juce_URL.h.


The documentation for this class was generated from the following file: