Skip to content

Commit d639e9c

Browse files
committed
Basic NSURLSession API.
1 parent e210391 commit d639e9c

28 files changed

+9178
-1116
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
#include <CoreFoundation/CFXMLInterface.h>
2424
#include <CoreFoundation/CFRegularExpression.h>
2525
#include <CoreFoundation/CFLogUtilities.h>
26+
#include <CoreFoundation/CFURLSessionInterface.h>
2627
#include <CoreFoundation/ForFoundationOnly.h>
2728
#include <fts.h>
2829

30+
2931
_CF_EXPORT_SCOPE_BEGIN
3032

3133
struct __CFSwiftObject {

CoreFoundation/URL.subproj/CFURLSessionInterface.c

Lines changed: 747 additions & 0 deletions
Large diffs are not rendered by default.

CoreFoundation/URL.subproj/CFURLSessionInterface.h

Lines changed: 748 additions & 0 deletions
Large diffs are not rendered by default.

Foundation.xcodeproj/project.pbxproj

Lines changed: 88 additions & 6 deletions
Large diffs are not rendered by default.

Foundation/NSData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ extension NSData {
333333
let cond = NSCondition()
334334
var resError: NSError?
335335
var resData: NSData?
336-
let task = session.dataTaskWithURL(url, completionHandler: { (data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in
336+
let task = session.dataTask(with: url, completionHandler: { (data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in
337337
resData = data
338338
resError = error
339339
cond.broadcast()

0 commit comments

Comments
 (0)