Skip to content

Commit 34b7d01

Browse files
committed
Updating documentation for AFURLConnectionOperation about implemented NSURLConnectionDelegate methods
1 parent 35a7b29 commit 34b7d01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AFNetworking/AFURLConnectionOperation.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ extern NSString * const AFNetworkingOperationDidFinishNotification;
5858
- `connection:didFailWithError:`
5959
- `connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:`
6060
- `connection:willCacheResponse:`
61+
- `connection:canAuthenticateAgainstProtectionSpace:`
62+
- `connection:didReceiveAuthenticationChallenge:`
6163
6264
If any of these methods are overriden in a subclass, they _must_ call the `super` implementation first.
63-
64-
Notably, `AFHTTPRequestOperation` does not implement any of the authentication challenge-related `NSURLConnection` delegate methods, and are thus safe to override without a call to `super`.
65-
65+
6666
## Class Constructors
6767
6868
Class constructors, or methods that return an unowned (zero retain count) instance, are the preferred way for subclasses to encapsulate any particular logic for handling the setup or parsing of response data. For instance, `AFJSONRequestOperation` provides `JSONRequestOperationWithRequest:success:failure:`, which takes block arguments, whose parameter on for a successful request is the JSON object initialized from the `response data`.

0 commit comments

Comments
 (0)