You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Create a new [URLCache] with the given memory and disk cache sizes.
251
+
///
252
+
/// [memoryCapacity] and [diskCapacity] are specified in bytes.
253
+
///
254
+
/// [directory] is the file system location where the disk cache will be
255
+
/// stored. If `null` then the default directory will be used.
256
+
///
257
+
/// See [NSURLCache initWithMemoryCapacity:diskCapacity:directoryURL:](https://developer.apple.com/documentation/foundation/nsurlcache/3240612-initwithmemorycapacity)
258
+
factoryURLCache.withCapacity(
259
+
{int memoryCapacity =0, int diskCapacity =0, Uri? directory}) =>
/// Whether background tasks can be delayed by the system.
304
342
///
305
343
/// See [NSURLSessionConfiguration.discretionary](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411552-discretionary)
@@ -314,10 +352,10 @@ class URLSessionConfiguration
// The maximum number of connections that a URLSession can have open to the
318
-
// same host.
355
+
/// The maximum number of connections that a URLSession can have open to the
356
+
/// same host.
319
357
//
320
-
// See [NSURLSessionConfiguration.HTTPMaximumConnectionsPerHost](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost).
358
+
/// See [NSURLSessionConfiguration.HTTPMaximumConnectionsPerHost](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost).
// See [NSURLSessionConfiguration.requestCachePolicy](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411655-requestcachepolicy)
395
+
/// Controls how to deal with response caching.
396
+
///
397
+
/// See [NSURLSessionConfiguration.requestCachePolicy](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411655-requestcachepolicy)
0 commit comments