When it comes to task-level authentication of a URLSession
I see references to two different method signatures in Apple's documentation:
- E.g. here is a reference to
urlSession(_,task:,didReceive:, completionHandler:)
. - E.g. here is a reference to
urlSession(_, task:,didReceiveChallenge:completionHandler)
.
Which is the right one (or do both apply under different circumstances)?
Intuitively one could think that the 1st one is a typo (mistake in documentation), and that the 2nd one applies. But a look into iOS header files suggests that the 1st one applies and the 2nd is a typo or obsolete.
So which exact method of a URLSessionDelegate
will be called (in iOS 10) for delivering a (task-level) authentication challenge to an app? (I will go with the 1st one for the time being.)