Classes
The following classes are available globally.
-
Connects to a network service to retrieve a JSON document of the generic type
See moreJSONIntermediateType
. TheJSONPayloadProcessor
then attempts to convert the JSON intermediate type into the finalResponseDataType
.Declaration
Swift
open class JSONTransaction<JSONIntermediateType, ResponseDataType>: HTTPTransaction<ResponseDataType>
-
A
DataTransaction
that uses aURLRequest
to request data from (and potentially send data to) an HTTP(S)-based service.A successful transaction produces an instance of
See moreResponseDataType
.Declaration
Swift
open class HTTPTransaction<HTTPResponseDataType>: DataTransaction
-
Attempts to construct a platform-appropriate image object by fetching image data from the given service.
Note
PlatformImageType
represents the image type appropriate for the runtime platform. On iOS and tvOS, it maps toUIImage
; on Mac OS X, it’sNSImage
.Declaration
Swift
open class FetchImageTransaction: HTTPTransaction<PlatformImageType>