| | |
| | | #import "SDWebImageDownloader.h" |
| | | #import "SDWebImageOperation.h" |
| | | |
| | | extern NSString * _Nonnull const SDWebImageDownloadStartNotification; |
| | | extern NSString * _Nonnull const SDWebImageDownloadReceiveResponseNotification; |
| | | extern NSString * _Nonnull const SDWebImageDownloadStopNotification; |
| | | extern NSString * _Nonnull const SDWebImageDownloadFinishNotification; |
| | | FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStartNotification; |
| | | FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadReceiveResponseNotification; |
| | | FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStopNotification; |
| | | FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadFinishNotification; |
| | | |
| | | |
| | | |
| | | /** |
| | | Describes a downloader operation. If one wants to use a custom downloader op, it needs to inherit from `NSOperation` and conform to this protocol |
| | | For the description about these methods, see `SDWebImageDownloaderOperation` |
| | | */ |
| | | @protocol SDWebImageDownloaderOperationInterface<NSObject> |
| | | |
| | |
| | | |
| | | - (nullable NSURLCredential *)credential; |
| | | - (void)setCredential:(nullable NSURLCredential *)value; |
| | | |
| | | - (BOOL)cancel:(nullable id)token; |
| | | |
| | | @end |
| | | |
| | |
| | | @property (nonatomic, assign) BOOL shouldUseCredentialStorage __deprecated_msg("Property deprecated. Does nothing. Kept only for backwards compatibility"); |
| | | |
| | | /** |
| | | * The credential used for authentication challenges in `-connection:didReceiveAuthenticationChallenge:`. |
| | | * The credential used for authentication challenges in `-URLSession:task:didReceiveChallenge:completionHandler:`. |
| | | * |
| | | * This will be overridden by any shared credentials that exist for the username or password of the request URL, if present. |
| | | */ |
| | |
| | | @property (assign, nonatomic) NSInteger expectedSize; |
| | | |
| | | /** |
| | | * The response returned by the operation's connection. |
| | | * The response returned by the operation's task. |
| | | */ |
| | | @property (strong, nonatomic, nullable) NSURLResponse *response; |
| | | |