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
-
A configuration class that can be used with Environment, RouteConfiguration and Request. A configuration object follows the following rules:
- When a Configuration object is passed to a Environment, each Router (with its routes) will inherit this configuration.
- When a Configuration object is passed to Router, all its routes will inherit this configuration.
Declaration
Swift
public final class Configuration
extension Configuration: NSCopying
-
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
-
Route configuration class which is used in Route protocol implementations.
See moreDeclaration
Swift
public final class RouteConfiguration
-
This class is used to create instances of Router that can be used to start requests based on the given Route.
See moreDeclaration
Swift
public final class Router<Route> where Route : RouteProtocol