Using secure HTTPS connections when interacting with servers and Web services is an important step for security-sensitive data. By default, Alamofire uses the validation method...
RetryPolicy is another perfect implementation of RequestInterceptor in Alamofire. As the name suggests, it mainly satisfies various retry strategies when a request goes wrong. Here...
URLSession is a key class that responds to sending and receiving HTTP requests. Start by creating a simple downloadTask using the global urlsession.shared and downloadTask:...
As we mentioned in our previous analysis of interceptors, some of the more commonly used interceptors are implemented in Alamofire. AuthenticationInterceptor is definitely one of...
The first two "Alamofire learning (I) - Preparation of basic network knowledge" and "Alamofire learning (II) - Preparation of URLSession knowledge", I made up for...
Content-Disposition: form-data; Name ="name": where Content-Disposition is an extension of the MIME protocol that instructs the MIME user agent how to display the attached file....
Introduction With the official release of Swift3, our project also started the migration of Swift3. With tears in your eyes, do it!! Talkischeap showmethecodeAlamofireAlamofire is...
Introduction With the official release of Swift3, our project also started the migration of Swift3. With tears in your eyes, do it!! Talkischeap showmethecodeAlamofireAlamofire is...
URLSession is relatively simple in terms of background processing. Initialize the configuration of a background mode. Configuration supports three modes. Only the Background mode can...
1️ retail. Support client/server mode. 2️ discount: when customers request service to the server, they only need to transmit the request method and path. The...
Introduction With the official release of Swift3, our project also started the migration of Swift3. With tears in your eyes, do it!! Talkischeap showmethecodeAlamofireAlamofire is...
In order to improve the user experience, network requests such as downloading large files are often placed in the background so that tasks can continue...
This article is a translation of Alamofire Advanced Usage. If necessary, please refer to the original text. The content of this article is also saved...
This feature is particularly useful and provides two capabilities. Redirect urlRequest to a new request. Other returns succeeded. Customized verification is handled according to their...
Alamofire is now a must-have framework for the Swift project. This paper begins to study relevant knowledge (Alamofire version 5.4.4). The main goal here is...
Alamofire is a set of network request tripartite library written in Swift, equivalent to AFNetWorking in OC. Before we begin with Alamofire, let's review some...
SesssionManager is the externally provided manager that has all the functionality of the entire Alamofire. More interesting: SessionDelegate also provides external closures, meaning that all...
Starting with iOS7, apple introduced URLSession, called NSURLSession in OC, instead of URLConnection. Since Alamofire is also a encapsulated URLSession, let's first learn about the...
Reachable Address 0.0.0.0 is treated as a special token that monitors the general routing status of the device, both IPv4 and IPv6. Call SCNetworkReachabilityContext initialization,...
In iOS10, false is recommended for non-streaming media playback, although this parameter is not available. This value is incorrect when we use KVO to listen...