UploadRequest
public final class UploadRequest : DataRequest, @unchecked Sendable
DataRequest subclass which handles Data upload from memory, file, or stream using URLSessionUploadTask.
-
Type describing the origin of the upload, whether
See moreData, file, or stream.Declaration
Swift
public enum Uploadable : @unchecked Sendableextension UploadRequest.Uploadable: UploadableConvertible
-
The
UploadableConvertiblevalue used to produce theUploadablevalue for this instance.Declaration
Swift
public let upload: any UploadableConvertible -
FileManagerused to perform cleanup tasks, including the removal of multipart form encoded payloads written to disk.Declaration
Swift
public let fileManager: FileManager
-
Uploadablevalue used by the instance.Declaration
Swift
public var uploadable: Uploadable? -
Declaration
Swift
override public func cleanup()
View on GitHub
Install in Dash