mirror of
https://github.com/darlinghq/darling-cfnetwork.git
synced 2024-11-26 21:20:38 +00:00
Add defaultSessionConfiguration to URLSessionConfiguration and fix URLSession
This commit is contained in:
parent
f19baa2f16
commit
29b41cc5b0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user