RequestInterceptorRegistry
open class RequestInterceptorRegistry
RequestInterceptorRegistry is responsible to maintain, and manage an array of RequestInterceptor for FRCore’s network layer
-
Shared instance of
RequestInterceptorRegistryDeclaration
Swift
public static let shared: RequestInterceptorRegistry
-
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
interceptorsAn array of RequestInterceptor to be registered
shouldOverrideBoolean indicator whether or not to override existing array
View on GitHub