Sources/RequestDL/Tasks/Sources/Raw Task/Upload/Models/DownloadStep.swift
/*
See LICENSE for this package's licensing information.
*/
import Foundation
/// Represents a step during the download process.
public struct DownloadStep: Sendable, Hashable {
/// The response head.
public let head: ResponseHead
/// The downloaded bytes.
public let bytes: AsyncBytes
/**
Initializes with the response head and the async bytes expected to be received.
- Parameters:
- head: The response head.
- bytes: The downloaded bytes.
*/
public init(head: ResponseHead, bytes: AsyncBytes) {
self.head = head
self.bytes = bytes
}
}