Networking

  • A protocol that needs to be conformed to by custom server API requests.

    Declaration

    Swift

    public protocol APIRequestType : AnyObject, CustomStringConvertible, SchedulableTask
  • The executing behavior of the APIRequest.

    Declaration

    Swift

    public enum APIRequestExecutionBehavior
  • A protocol that needs to be conformed to by custom server API request configurations.

    Declaration

    Swift

    public protocol APIRequestConfigurationType : URLConvertible, URLRequestConvertible
  • A closure provided by the type conforming to APIRequestConfigurationType protocol. This will be called by APIRequest with raw URLResponse so the implementer has an opportunity to parse and infer any custom errors if necessary.

    Declaration

    Swift

    public typealias CustomErrorExtractor = (DataResponse<Data>) -> UsherErrorProtocol?
  • API request status.

    Declaration

    Swift

    public enum APIRequestStatus : String, CustomStringConvertible
  • APIRequestExecutor is responsible for scheduling and executing the network requests. It can be used to stop / start all network activity if necessary.

    Declaration

    Swift

    public class APIRequestExecutor
  • This class creates a formatted description of an APIRequestType object and logs it to file using LogHelper APIs.

    See also

    LogHelper
    Declaration

    Swift

    public final class APIRequestLogger
  • Enum representation wrapper for NSURLAuthenticationMethod. Only authentication methods supported by APIrequestType are listed.

    Declaration

    Swift

    public enum URLAuthenticationMethod : RawRepresentable
  • A protocol for the class that will provide the URLCredential for the specified authentication challenge.

    Declaration

    Swift

    public protocol URLCredentialProvider
  • Helper class for the TLS workflows.

    Declaration

    Swift

    public class TLSTools : NSObject, URLSessionTaskDelegate