URLTaskInterceptor
public protocol URLTaskInterceptor : Interceptor
This protocol provides a means to intercept URLTasks.
You only need to implement the specialized intercept function in this protocol.
The protocol has default conformance to Interceptor.
-
intercept(task:Extension methodcurrentBatchCount: ) Default implementation of the
Interceptorprotocol. If the tasks encountered are notURLInterceptorTaskobjects they are discardedDeclaration
Swift
func intercept<T>(task: inout T, currentBatchCount: Int) -> InterceptCommand where T : Task
View on GitHub
URLTaskInterceptor Protocol Reference