RequestInterceptorRegistry

open class RequestInterceptorRegistry

RequestInterceptorRegistry is responsible to maintain, and manage an array of RequestInterceptor for FRCore’s network layer

Property

  • Shared instance of RequestInterceptorRegistry

    Declaration

    Swift

    public static let shared: RequestInterceptorRegistry

Public

  • Registers a new array of interceptor to FRCore’s network layer; the new array can override the existing interceptors, or append on top of existing array

    Declaration

    Swift

    public func registerInterceptors(interceptors: [RequestInterceptor]?, shouldOverride: Bool = true)

    Parameters

    interceptors

    An array of RequestInterceptor to be registered

    shouldOverride

    Boolean indicator whether or not to override existing array