runZoned<R> method
- R body( ),
- {HttpClient createHttpClient( ),
- String findProxyFromEnvironment( )}
Runs body in a fresh Zone using the provided overrides.
Implementation
static R runZoned<R>(R body(),
{HttpClient Function(SecurityContext?)? createHttpClient,
String Function(Uri uri, Map<String, String>? environment)?
findProxyFromEnvironment}) {
HttpOverrides overrides =
new _HttpOverridesScope(createHttpClient, findProxyFromEnvironment);
return _asyncRunZoned<R>(body,
zoneValues: {_httpOverridesToken: overrides});
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/HttpOverrides/runZoned.html