ProtocolFoundationNetworking5.9.0
URLSessionTaskDelegate
protocol URLSessionTaskDelegate : URLSessionDelegate
Supertypes
protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.protocol URLSessionDelegate
Requirements
func urlSession(URLSession, task: URLSessionTask, didCompleteWithError: Error?
) func urlSession(URLSession, task: URLSessionTask, didFinishCollecting: URLSessionTaskMetrics
) func urlSession(URLSession, task: URLSessionTask, didReceive: URLAuthenticationChallenge, completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
) func urlSession(URLSession, task: URLSessionTask, didSendBodyData: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64
) func urlSession(URLSession, task: URLSessionTask, needNewBodyStream: (InputStream?) -> Void
) func urlSession(URLSession, task: URLSessionTask, willBeginDelayedRequest: URLRequest, completionHandler: (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
) func urlSession(URLSession, task: URLSessionTask, willPerformHTTPRedirection: HTTPURLResponse, newRequest: URLRequest, completionHandler: (URLRequest?) -> Void
)