DataUploadable
public protocol DataUploadable : Uploadable
Represents a DataUploadable
for Alamofire.
Create custom DataUploadable
protocol HTTPBinUploadService: DataUploadable {
typealias Response = Data
var path: String? = "post"
var data: Data = {
return "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
.data(using: .utf8, allowLossyConversion: false)!
}()
}
-
The data.
Declaration
Swift
var data: Data { get }