Skip to content

Instantly share code, notes, and snippets.

@dzindra
Created January 30, 2016 11:20
Show Gist options
  • Save dzindra/7c0e4dd08de9a8e97ae1 to your computer and use it in GitHub Desktop.
Save dzindra/7c0e4dd08de9a8e97ae1 to your computer and use it in GitHub Desktop.
NSURLSessionConfiguration dump
- (void)dumpConfig:(NSURLSessionConfiguration *)config {
NSLog(@"config.identifier = %@", config.identifier);
NSLog(@"config.requestCachePolicy = %d", config.requestCachePolicy);
NSLog(@"config.timeoutIntervalForRequest = %lf", config.timeoutIntervalForRequest);
NSLog(@"config.timeoutIntervalForResource = %lf", config.timeoutIntervalForResource);
NSLog(@"config.networkServiceType = %d", config.networkServiceType);
NSLog(@"config.allowsCellularAccess = %d", config.allowsCellularAccess);
NSLog(@"config.discretionary = %d", config.discretionary);
NSLog(@"config.sharedContainerIdentifier = %@", config.sharedContainerIdentifier);
NSLog(@"config.sessionSendsLaunchEvents = %d", config.sessionSendsLaunchEvents);
NSLog(@"config.connectionProxyDictionary = %@", config.connectionProxyDictionary);
NSLog(@"config.TLSMinimumSupportedProtocol = %d", config.TLSMinimumSupportedProtocol);
NSLog(@"config.TLSMaximumSupportedProtocol = %d", config.TLSMaximumSupportedProtocol);
NSLog(@"config.HTTPShouldUsePipelining = %d", config.HTTPShouldUsePipelining);
NSLog(@"config.HTTPShouldSetCookies = %d", config.HTTPShouldSetCookies);
NSLog(@"config.HTTPCookieAcceptPolicy = %d", config.HTTPCookieAcceptPolicy);
NSLog(@"config.HTTPAdditionalHeaders = %@", config.HTTPAdditionalHeaders);
NSLog(@"config.HTTPMaximumConnectionsPerHost = %i", config.HTTPMaximumConnectionsPerHost);
NSLog(@"config.HTTPCookieStorage = %@", config.HTTPCookieStorage);
NSLog(@"config.URLCredentialStorage = %@", config.URLCredentialStorage);
NSLog(@"config.URLCache = %@", config.URLCache);
NSLog(@"config.shouldUseExtendedBackgroundIdleMode = %d", config.shouldUseExtendedBackgroundIdleMode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment