A delightful networking framework for iOS, macOS, watchOS, and tvOS.
#define
for NS_DESIGNATED_INITIALIZER
for unsupported versions of XcodeAFImageWithDataAtScale
handling of animated imagesassign
semantics for GCD properties based on OS_OBJECT_HAVE_OBJC_SUPPORT
for better Swift supportNS_DESIGNATED_INITIALIZER
macros. (Samir Guerdah)stringEncoding
property. (Mattt Thompson)automaticallyNotifiesObserversForKey:
implementation. (Mattt Thompson)genstrings
warning for NSLocalizedString
usage in UIAlertView+AFNetworking
. (Adar Porat)NSURLSessionManager
task observation for network activity indicator manager. (Phil Tang)UIButton
category method caching of background image (Fernanda G. Geraissate)UIButton
category method failure handling. (Maxim Zabelin)request.HTTPBody
is non-nil. (Mattt Thompson)__Require
macros from AssertMacros.h. (Cédric Luthi)parameters
parameter to accept id
for custom serialization block. (@mooosu)AFJSONRequestSerializer
and AFPropertyListSerializer
(Mattt Thompson)init
method declarations of AFURLResponseSerialization
classes for Swift compatibility (Allen Rohner)validatesDomainName
to readonly property (Mattt Thompson, Brian King)AFHTTPRequestSerializerObservedKeyPaths
(Jacek Suliga)NSURLResponse -URL
as key for userInfo
dictionary (Elvis Nuñez)AFURLConnectionOperation -description
NSURLSessionTask -state
(Phil Tang)UIButton
category associated object keys (Kristian Bauer, Mattt Thompson)charset
parameter from Content-Type HTTP header field values for AFJSONRequestSerializer
and AFPropertyListSerializer
(Mattt Thompson)downloadFileURL
to the delegate if the manager picks a fileURL
(Brian King)AFSSLPinningModeNone
to not validate domain name (Brian King)UIButton
category to cache images in sharedImageCache
(John Bushnell)UIRefreshControl
category to set control state to current state of request (Elvis Nuñez)UIButton
category (Kristian Bauer, Mattt Thompson)AFHTTPRequestSerializer -valueForHTTPHeaderField:
(Kyle Fuller)AFNetworkingOperationFailingURLResponseDataErrorKey
key to user info of serialization error (Yannick Heinrich)imageResponseSerializer
property to UIButton
category (Kristian Bauer, Mattt Thompson)removesKeysWithNullValues
setting to serialization and copying (Jon Shier)UIButton
category methods to match those in UIImageView
(Mattt Thompson)application/x-www-form-urlencoded
content type (Mattt Thompson)AFImageCache
to conform to NSObject
protocol ( Marcelo Fabri)AFMaximumNumberOfToRecreateBackgroundSessionUploadTask
to AFMaximumNumberOfAttemptsToRecreateBackgroundSessionUploadTask
(Mattt Thompson)URLSessionDidFinishEventsForBackgroundURLSession
delegate method (Mattt Thompson)delegate
of AFMultipartBodyStream
(Mattt Thompson)nil
as body of multipart form part (Mattt Thompson)nil
as destination in download task method (Mattt Thompson)AFHTTPRequestSerializer
returning a request and silently handling an error from a queryStringSerialization
block (Kyle Fuller, Mattt Thompson)invalidateSessionCancelingTasks
only executes on main thread (Mattt Thompson)AFHTTPSessionManager
convenience methods (Kyle Fuller, Lars Anderson, Mattt Thompson)-copyWithZone:
calls super implementation (Chris Streeter)UIButton
category to only cancel request for specified state (@xuzhe, Mattt Thompson)streamStatus
& streamError
properties on AFMultipartBodyStream
(Mattt Thompson)AF_APP_EXTENSIONS
macro to conditionally compile background method that makes API call unavailable to App Extensions in iOS 8 / OS X 10.10AFNetworkReachabilityStatusUnknown
to any other state (Jason Pepas, Sebastian S.A., Mattt Thompson)attemptsToRecreateUploadTasksForBackgroundSessions
property, which attempts Apple's recommendation of retrying a failed upload task if initial creation did not succeed (Mattt Thompson)completionQueue
and completionGroup
properties to AFHTTPRequestOperationManager
(Robert Ryan)completionHandler
of application:handleEventsForBackgroundURLSession:completion:
to be run on main thread (Padraig Kennedy)UIImageView
category to accept any object conforming to AFURLResponseSerialization
, rather than just AFImageResponseSerializer
(Romans Karpelcevs)NSProgress
(Padraig Kennedy, Ullrich Schäfer)backgroundSessionConfiguration:
in iOS 8 / OS X 10.10 (Mattt Thompson)copyWithZone:
in serializer subclasses (Chris Streeter)NSStream
properties (Clay Bridges, Johan Attali)NSURLSessionTask
on iOS 8 / OS X 10.10 (Mattt Thompson)NSURLSessionTask
(@Zyphrax)uploadProgress
block inside a referencing dispatch_async
to avoid potential race condition (Kyungkoo Kang)UIImageView
category race conditions (Sunny)NSOutputStream
property to only nil out if responseData
is non-nil, meaning that no custom object was set (Mattt Thompson)-downloadTaskDidFinishDownloading:
not being called (Andrej Mihajlov)<AssertionMacros.h>
, which signaled an incorrect deprecation warning (Mattt Thompson)-downloadTaskWithRequest:
to warn about blocks being disassociated on app termination and backgrounding (Robert Ryan)removesKeysWithNullValues
property to recursively remove null values from dictionaries nested in arrays (@jldagon)Content-Type
header field values set by HTTPRequestHeaders
property (Aaron Brager, Mattt Thompson)AFErrorOrUnderlyingErrorHasCodeInDomain
function declaration for AFXMLDocumentResponseSerializer (Mattt Thompson)AFErrorOrUnderlyingErrorHasCodeInDomain
(Mattt Thompson)UIImageView
category to only nil
out request operation properties belonging to completed request (Mattt Thompson)removesKeysWithNullValues
to respect NSJSONReadingMutableContainers
option (Mattt Thompson)connection:didReceiveData:
(Mattt Thompson)NSUInteger
in format string (Alexander Kempgen)SecTrustEvaluate
before calling SecTrustGetCertificateCount
in SSL certificate validation (Josh Chung)CFStringTransform()
call for success before using result (Kevin Cassidy Jr)AFHTTPMultipartBodyStream
to randomly generate form boundary, to prevent attack based on a known value (Mathias Bynens, Tom Van Goethem, Mattt Thompson)kAFStreamToStreamBufferSize
(Alexander Kempgen)