diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 72eea15..f4ec97f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -99,6 +99,7 @@ set(cfnetwork_sources URL/NSURLRequest.m URL/NSURLResponse.m URL/NSURLSession.m + URL/NSCFURLSession.m HTTP/NSHTTPCookie.m HTTP/NSHTTPCookieStorage.m diff --git a/src/URL/NSURLSession.m b/src/URL/NSURLSession.m index 91d0224..39367a5 100644 --- a/src/URL/NSURLSession.m +++ b/src/URL/NSURLSession.m @@ -31,8 +31,22 @@ NSString* const NSURLSessionDownloadTaskResumeData = @"NSURLSessionDownloadTaskR @implementation NSURLSessionDataTask @end +@implementation NSURLSessionDownloadTask +@end + @implementation NSURLSessionUploadTask @end @implementation NSURLSessionConfiguration + +static NSURLSessionConfiguration *_defaultSessionConfiguration = nil; + ++ (NSURLSessionConfiguration *)defaultSessionConfiguration { + if (_defaultSessionConfiguration == nil) { + _defaultSessionConfiguration = [[NSURLSessionConfiguration alloc] init]; + } + + return _defaultSessionConfiguration; +} + @end