runZoned<R> static method
- R body(
- {HttpClient createHttpClient( )?,
- String findProxyFromEnvironment( )?}
Runs body
in a fresh Zone using the provided overrides.
Implementation
static R runZoned<R>(R Function() body,
{HttpClient Function(SecurityContext?)? createHttpClient,
String Function(Uri uri, Map<String, String>? environment)?
findProxyFromEnvironment}) {
HttpOverrides overrides =
_HttpOverridesScope(createHttpClient, findProxyFromEnvironment);
return dart_async.runZoned<R>(body,
zoneValues: {_httpOverridesToken: overrides});
}