The documentation of NSURLConnection says that there are delegate methods like
connection:willSendRequest:redirectResponse:
But the documentation doesn't mention which delegate protocol to implement. Well, I assume there just isn't any protocol for the delegate, so everything is just optional?
It's an informal protocol implemented in NSURLConnection.h
as a category on NSObject:
@interface NSObject (NSURLConnectionDelegate)
That means any subclass of NSObject can be a delegate for NSURLConnection. Yes, all delegate methods are optional.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With