Other Protocols

The following protocols are available globally.

  • A protocol providing a baseURL of type URL.

    Note: URL itself is implementing the protocol itself, returning self as the baseURL.

    See more

    Declaration

    Swift

    public protocol BaseURLProvider
  • A protocol providing a decode<T: Decodable>(: T.Type, from: Data) -> T interface.

    See more

    Declaration

    Swift

    public protocol Decoder
  • A protocol providing a encode<T: Encodable>(: T) -> Data interface.

    See more

    Declaration

    Swift

    public protocol Encoder
  • The protocol request executers need to conform to to be able to be used to send requests.

    See more

    Declaration

    Swift

    public protocol RequestExecuter
  • Base Protocol for Interceptor. Interceptors are able to intercept a request and a response..

    See more

    Declaration

    Swift

    public protocol Interceptor
  • A type that represents a session cache interceptor used for intercepting a cached response.

    See more

    Declaration

    Swift

    public protocol SessionCacheInterceptor : Interceptor
  • Protocol for requests that can be cancelled.

    See more

    Declaration

    Swift

    public protocol CancellableRequest
  • Logger to be used within the logging interceptors. To have your own logging mechanism simply conform to this protocol to be able to use your implementation within the interceptors.

    See more

    Declaration

    Swift

    public protocol Logger