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 Sendable
extension UploadRequest.Uploadable: UploadableConvertible
-
The
UploadableConvertible
value used to produce theUploadable
value for this instance.Declaration
Swift
public let upload: any UploadableConvertible
-
FileManager
used to perform cleanup tasks, including the removal of multipart form encoded payloads written to disk.Declaration
Swift
public let fileManager: FileManager
-
Uploadable
value used by the instance.Declaration
Swift
public var uploadable: Uploadable?
-
Declaration
Swift
override public func cleanup()