Structures
The following structures are available globally.
-
Error that is created in case
See moreDownloadAPIRequest
errors out, but Alamofire and URL loading system report error as nil. Practically, this should never happen ¯_(ツ)_/¯ .Declaration
Swift
public struct DownloadError<T, Failure> : Error where Failure : Error
-
Response serializer, that wraps serialization closure to implement
See moreAlamofire.DataResponseSerializerProtocol
. Is used forAPIRequest
andUploadAPIRequest
.Declaration
Swift
public struct TRONDataResponseSerializer<Model> : DataResponseSerializerProtocol
-
Response serializer, that wraps serialization closure to implement
See moreAlamofire.DownloadResponseSerializerProtocol
. Is used forDownloadAPIRequest
.Declaration
Swift
public struct TRONDownloadResponseSerializer<Model> : DownloadResponseSerializerProtocol
-
Response serializer, that returns file URL upon successful download. Is used for
See moreDownloadAPIRequest
.Declaration
Swift
public struct FileURLPassthroughResponseSerializer : DownloadResponseSerializerProtocol