Classes
The following classes are available globally.
-
Cache is used internally for various tasks such as in-memory caching image data. Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
See moreDeclaration
Swift
public final class Cache -
This class is used to create instances of Repository that can be used to start requests based on the given endpoint.
See moreDeclaration
Swift
public final class Client<Repository> where Repository : EndpointProtocol -
A configuration class that can be used with Environment, Repository, Endpoint and Request. A configuration object follows the following rules:
- When a Configuration object is passed to an Environment, each Repository with its Endpoints and requests will inherit this configuration.
- When a Configuration object is passed to Repository, all its Endpoints and Requests will inherit this configuration.
Declaration
Swift
public final class Configurationextension Configuration: NSCopying -
Endpoint configuration class which is used in EndpointProtocol implementations.
See moreDeclaration
Swift
public final class EndpointConfiguration -
The Environment contains information about host, port, configuration and it’s used in Request instances.
See moreDeclaration
Swift
open class Environment -
Inherit this class as to create your transformers. You should pass FromType and ToType (generic types) in your subclass definition.
See moreDeclaration
Swift
open class Transformer<FromType, ToType> : NSObject, TransformerProtocol
-
This class is inherited by Request to control the execution of the request.
See moreDeclaration
Swift
public class Operation : Foundation.Operation -
Use this class to create custom queues.
See moreDeclaration
Swift
public final class Queue : OperationQueue -
Adds Reachability supportt
See moreDeclaration
Swift
open class Reachability
View on GitHub
Install in Dash
Classes Reference