DownloadRequest class final
HTTP download request supporting ranged resumption.
- Inheritance
-
- Object
- TransferRequest
- DownloadRequest
Constructors
-
DownloadRequest({required Uri source, required TransferDestination destination, ResumeMode resumeMode = ResumeMode.whenSupported, ExistingFilePolicy existingFilePolicy = ExistingFilePolicy.resume, Map<
String, String> headers = const {}, String? authScope, String? groupId, TransferPriority priority = TransferPriority.normal, RetryPolicy? retryPolicy, NetworkPolicy? networkPolicy, TransferNotification? notification, Checksum? checksum, String? expectedChecksum}) -
Creates an HTTP download request.
const
Properties
- authScope → String?
-
Opaque key passed to the configured authentication provider.
finalinherited
- checksum → Checksum?
-
Hash algorithm used to verify the local artifact.
finalinherited
- destination → TransferDestination
-
Platform-neutral destination for the completed artifact.
final
- existingFilePolicy → ExistingFilePolicy
-
Behavior when the final destination already exists.
final
- expectedChecksum → String?
-
Expected lowercase or uppercase hexadecimal checksum.
finalinherited
- groupId → String?
-
Optional application-defined grouping identifier.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Additional HTTP headers sent with the request.
finalinherited
- networkPolicy → NetworkPolicy?
-
Request-specific network policy, or
nullto use manager defaults.finalinherited - notification → TransferNotification?
-
Native notification preferences.
finalinherited
- priority → TransferPriority
-
Queue scheduling priority.
finalinherited
- protocol → String
-
Protocol identifier used to select an execution engine.
no setteroverride
- remoteUri → Uri
-
Remote endpoint used for scheduling and per-host concurrency.
no setteroverride
- resumeMode → ResumeMode
-
Whether interrupted partial data may be resumed.
final
- retryPolicy → RetryPolicy?
-
Request-specific retry policy, or
nullto use manager defaults.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → Uri
-
Remote file URL.
final
- type → TransferType
-
Whether this request uploads or downloads data.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited