Interceptor
public protocol Interceptor
Protocol to intercept before/after network calls.
-
prepare(request:)Default implementationTransform URLRequest before executing
Default Implementation
Declaration
Swift
func prepare(request: URLRequest) -> URLRequest -
willExecute(request:)Default implementationInvoked right before execution
Default Implementation
Declaration
Swift
func willExecute(request: Request) -
didExecute(request:)Default implementationInvoked right after execution
Default Implementation
Declaration
Swift
func didExecute(request: Request) -
process(response:)Default implementation
View on GitHub
Install in Dash
Interceptor Protocol Reference