URLTaskInterceptor
public protocol URLTaskInterceptor : Interceptor
This protocol provides a means to intercept URLTask
s.
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
Interceptor
protocol. If the tasks encountered are notURLInterceptorTask
objects they are discardedDeclaration
Swift
func intercept<T>(task: inout T, currentBatchCount: Int) -> InterceptCommand where T : Task