From b8d1483ea3bf05937196387d4e1d7593b9f0e1a0 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Sat, 1 Jun 2013 17:47:43 -0700 Subject: [PATCH] Updating documentation for authentication-related connection delegate methods --- AFNetworking/AFURLConnectionOperation.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.h b/AFNetworking/AFURLConnectionOperation.h index 2288c3a..3866a2e 100644 --- a/AFNetworking/AFURLConnectionOperation.h +++ b/AFNetworking/AFURLConnectionOperation.h @@ -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.