Structures

The following structures are available globally.

  • Error that is created in case DownloadAPIRequest errors out, but Alamofire and URL loading system report error as nil. Practically, this should never happen ¯_(ツ)_/¯ .

    See more

    Declaration

    Swift

    public struct DownloadError<T, Failure> : Error where Failure : Error
  • Response serializer, that wraps serialization closure to implement Alamofire.DataResponseSerializerProtocol. Is used for APIRequest and UploadAPIRequest.

    See more

    Declaration

    Swift

    public struct TRONDataResponseSerializer<Model> : DataResponseSerializerProtocol
  • Response serializer, that wraps serialization closure to implement Alamofire.DownloadResponseSerializerProtocol. Is used for DownloadAPIRequest.

    See more

    Declaration

    Swift

    public struct TRONDownloadResponseSerializer<Model> : DownloadResponseSerializerProtocol
  • Response serializer, that returns file URL upon successful download. Is used for DownloadAPIRequest.

    See more

    Declaration

    Swift

    public struct FileURLPassthroughResponseSerializer : DownloadResponseSerializerProtocol