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 more

    Declaration

    Swift

    public final class Cache
  • A configuration class that can be used with Environment, RouteConfiguration and Request. A configuration object follows the following rules:

    1. When a Configuration object is passed to a Environment, each Router (with its routes) will inherit this configuration.
    2. When a Configuration object is passed to Router, all its routes will inherit this configuration.
    See more

    Declaration

    Swift

    public final class Configuration
    extension Configuration: NSCopying

Enums

  • The core class of TermiNetwork. It handles the request creation and its execution.

    See more

    Declaration

    Swift

    public final class Request : Operation
    extension Request: NSCopying
  • The Environment contains information about host, port, configuration and it’s used in Request instances.

    See more

    Declaration

    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 more

    Declaration

    Swift

    open class Transformer<FromType, ToType> : NSObject, TransformerProtocol
  • This class is inherited by Request to control the execution of the request.

    See more

    Declaration

    Swift

    public class Operation : Foundation.Operation
  • Use this class to create custom queues.

    See more

    Declaration

    Swift

    public final class Queue : OperationQueue
  • Route configuration class which is used in Route protocol implementations.

    See more

    Declaration

    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 more

    Declaration

    Swift

    public final class Router<Route> where Route : RouteProtocol