Updating documentation for authentication-related connection delegate methods

This commit is contained in:
Mattt Thompson 2013-06-01 17:47:43 -07:00
parent 52a8a94b66
commit b8d1483ea3

View file

@ -43,11 +43,17 @@
- `connection:didFailWithError:`
- `connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:`
- `connection:willCacheResponse:`
- `connection:willSendRequestForAuthenticationChallenge:`
- `connection:canAuthenticateAgainstProtectionSpace:`
- `connection:didReceiveAuthenticationChallenge:`
- `connectionShouldUseCredentialStorage:`
- `connection:needNewBodyStream:`
When _AFNETWORKING_PIN_SSL_CERTIFICATES_ is defined, the following authentication delegate method is implemented:
- `connection:willSendRequestForAuthenticationChallenge:`
Otherwise, the following authentication delegate methods are implemented:
- `connection:canAuthenticateAgainstProtectionSpace:`
- `connection:didReceiveAuthenticationChallenge:`
If any of these methods are overridden in a subclass, they _must_ call the `super` implementation first.