Nonescaping and Escaping Closures L4.6.1
Nonescaping Closures By default, when a closure is passed into a function it is considered nonescaping. A nonescaping closure can only be used within the body »
Nonescaping Closures By default, when a closure is passed into a function it is considered nonescaping. A nonescaping closure can only be used within the body »
Grand Central Dispatch (GCD) GCD is an open source framework made available by apple for both iOS and OSX. GCD makes concurrent programming easier by abstracting »
We can add headers to a NSMutableURLRequest by storing the headers we want to include in a dictionary and assigning them to the allHTTPHeaderFields attribute of »
Building The Url We initialize a URLComponents object and set the scheme host and path attributes with normal string values. The we initialize an array to »
URLSession refers to network requests as "tasks" Any task used by URLSession is a subclass of URLSessionTask which has three main tasks Data Task - Returns »